function hook_ckeditor4to5upgrade_plugin_info_alter

Same name in other branches
  1. 9 core/modules/ckeditor5/ckeditor5.api.php \hook_ckeditor4to5upgrade_plugin_info_alter()

Modify the list of available CKEditor 4 to 5 Upgrade plugins.

This hook may be used to modify plugin properties after they have been specified by other modules. For example, to override a default upgrade path.

Parameters

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

See also

\Drupal\ckeditor5\Plugin\CKEditor4To5UpgradePluginManager

Related topics

1 function implements hook_ckeditor4to5upgrade_plugin_info_alter()

Note: this list is generated by pattern matching, so it may include some functions that are not actually implementations of this hook.

ckeditor4to5upgrade_plugin_test_ckeditor4to5upgrade_plugin_info_alter in core/modules/ckeditor5/tests/modules/ckeditor4to5upgrade_plugin_test/ckeditor4to5upgrade_plugin_test.module
Implements hook_ckeditor4to5upgrade_plugin_info_alter().
1 invocation of hook_ckeditor4to5upgrade_plugin_info_alter()
CKEditor4To5UpgradePluginManager::__construct in core/modules/ckeditor5/src/Plugin/CKEditor4To5UpgradePluginManager.php
Constructs a CKEditor4To5UpgradePluginManager object.

File

core/modules/ckeditor5/ckeditor5.api.php, line 281

Code

function hook_ckeditor4to5upgrade_plugin_info_alter(array &$plugin_definitions) : void {
    // Remove core's upgrade path for the "Maximize" button (which is: there is no
    // equivalent). This allows a different CKEditor4To5Upgrade plugin to define
    // this upgrade path instead.
    unset($plugin_definitions['core']['cke4_buttons']['Maximize']);
}

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