CkeditorTestHooks.php

Namespace

Drupal\ckeditor_test\Hook

File

core/modules/ckeditor5/tests/modules/ckeditor_test/src/Hook/CkeditorTestHooks.php

View source
<?php

declare (strict_types=1);
namespace Drupal\ckeditor_test\Hook;

use Drupal\Core\Hook\Attribute\Hook;

/**
 * Hook implementations for ckeditor_test.
 */
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'];
    }

}

Classes

Title Deprecated Summary
CkeditorTestHooks Hook implementations for ckeditor_test.

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