You are here

function hook_quickedit_editor_alter in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 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 a InPlaceEditorManager object.

File

core/modules/quickedit/quickedit.api.php, line 26
Hooks provided by the Edit module.

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