function hook_quickedit_editor_alter
Same name in other branches
- 8.9.x core/modules/quickedit/quickedit.api.php \hook_quickedit_editor_alter()
Allow modules to alter in-place editor plugin metadata.
This hook is called after the in-place editor plugins have been discovered, but before they are cached. Hence any alterations will be cached.
Parameters
array &$editors: An array of metadata on existing in-place editors, as collected by the annotation discovery mechanism.
See also
\Drupal\quickedit\Annotation\InPlaceEditor
\Drupal\quickedit\Plugin\EditorManager
Related topics
1 invocation of hook_quickedit_editor_alter()
- InPlaceEditorManager::__construct in core/
modules/ quickedit/ src/ Plugin/ InPlaceEditorManager.php - Constructs an InPlaceEditorManager object.
File
-
core/
modules/ quickedit/ quickedit.api.php, line 26
Code
function hook_quickedit_editor_alter(&$editors) {
// Cleanly override editor.module's in-place editor plugin.
$editors['editor']['class'] = 'Drupal\\advanced_editor\\Plugin\\quickedit\\editor\\AdvancedEditor';
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.