1 ckeditor5.api.php | hook_ckeditor5_plugins_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
array $plugins: An array of all the existing plugin definitions, passed by reference.
See also
Related topics
File
- core/
modules/ ckeditor5/ ckeditor5.api.php, line 103 - Documentation for CKEditor module APIs.
Code
function hook_ckeditor5_plugins_alter(array &$plugins) {
$plugins['someplugin']['enabled callback'] = 'my_module_someplugin_enabled_callback';
}