function Ckeditor5Hooks::configActionAlter

Same name and namespace in other branches
  1. main core/modules/ckeditor5/src/Hook/Ckeditor5Hooks.php \Drupal\ckeditor5\Hook\Ckeditor5Hooks::configActionAlter()

Implements hook_config_action_alter().

Attributes

#[Hook('config_action_alter')]

File

core/modules/ckeditor5/src/Hook/Ckeditor5Hooks.php, line 388

Class

Ckeditor5Hooks
Hook implementations for ckeditor5.

Namespace

Drupal\ckeditor5\Hook

Code

public function configActionAlter(array &$definitions) : void {
  // Create a pluralized alias for the `addItemToToolbar` action.
  $definitions['editor:addItemsToToolbar'] = $definitions['editor:addItemToToolbar'];
  $definitions['editor:addItemsToToolbar']['admin_label'] = new TranslatableMarkup('Add multiple items to a CKEditor 5 toolbar');
}

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