W3cubDocs

/Drupal 8

function hook_ckeditor_plugin_info_alter

hook_ckeditor_plugin_info_alter(array &$plugins)

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

CKEditorPluginManager

Related topics

Hooks
Define functions that alter the behavior of Drupal core.

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');
}

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!modules!ckeditor!ckeditor.api.php/function/hook_ckeditor_plugin_info_alter/8.1.x