function CkeditorTestHooks::editorInfoAlter
Implements hook_editor_info_alter().
File
-
core/
modules/ ckeditor5/ tests/ modules/ ckeditor_test/ src/ Hook/ CkeditorTestHooks.php, line 17
Class
- CkeditorTestHooks
- Hook implementations for ckeditor_test.
Namespace
Drupal\ckeditor_test\HookCode
public function editorInfoAlter(array &$editors) : void {
// 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'];
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.