function SmartDefaultSettingsTest::editorInfoAlter
Same name and namespace in other branches
- main core/modules/ckeditor5/tests/src/Kernel/SmartDefaultSettingsTest.php \Drupal\Tests\ckeditor5\Kernel\SmartDefaultSettingsTest::editorInfoAlter()
Implements hook_editor_info_alter().
Attributes
#[Hook('editor_info_alter')]
See also
::test()
File
-
core/
modules/ ckeditor5/ tests/ src/ Kernel/ SmartDefaultSettingsTest.php, line 396
Class
- SmartDefaultSettingsTest
- Tests Smart Default Settings.
Namespace
Drupal\Tests\ckeditor5\KernelCode
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.