class CkeditorTestHooks
Hook implementations for ckeditor_test.
Hierarchy
- class \Drupal\ckeditor_test\Hook\CkeditorTestHooks
Expanded class hierarchy of CkeditorTestHooks
File
-
core/
modules/ ckeditor5/ tests/ modules/ ckeditor_test/ src/ Hook/ CkeditorTestHooks.php, line 12
Namespace
Drupal\ckeditor_test\HookView 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'];
}
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.