class CkeditorTestHooks

Hook implementations for ckeditor_test.

Hierarchy

Expanded class hierarchy of CkeditorTestHooks

File

core/modules/ckeditor5/tests/modules/ckeditor_test/src/Hook/CkeditorTestHooks.php, line 12

Namespace

Drupal\ckeditor_test\Hook
View source
class CkeditorTestHooks {
    
    /**
     * Implements hook_editor_info_alter().
     */
    public function editorInfoAlter(array &$editors) {
        // Drupal 9 used to have an editor called ckeditor. Copy the Unicorn editor to
        // it to be able to test upgrading to CKEditor 5.
        $editors['ckeditor'] = $editors['unicorn'];
    }

}

Members

Title Sort descending Modifiers Object type Summary
CkeditorTestHooks::editorInfoAlter public function Implements hook_editor_info_alter().

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.