You are here

function hook_ckeditor_plugin_info_alter in Drupal 8

Same name and namespace in other branches
  1. 9 core/modules/ckeditor/ckeditor.api.php \hook_ckeditor_plugin_info_alter()

Modify the list of available CKEditor plugins.

This hook may be used to modify plugin properties after they have been specified by other modules.

Parameters

$plugins: An array of all the existing plugin definitions, passed by reference.

See also

\Drupal\ckeditor\CKEditorPluginManager

Related topics

1 invocation of hook_ckeditor_plugin_info_alter()
CKEditorPluginManager::__construct in core/modules/ckeditor/src/CKEditorPluginManager.php
Constructs a CKEditorPluginManager object.

File

core/modules/ckeditor/ckeditor.api.php, line 26
Documentation for CKEditor module APIs.

Code

function hook_ckeditor_plugin_info_alter(array &$plugins) {
  $plugins['someplugin']['label'] = t('Better name');
}