Skip to content
Snippets Groups Projects
Commit b9de1f2d authored by Dries Buytaert's avatar Dries Buytaert
Browse files

Issue #1984628 by Wim Leers: documentation missing for hook_edit_editor_alter().

parent 30251ca2
No related branches found
No related tags found
2 merge requests!7452Issue #1797438. HTML5 validation is preventing form submit and not fully...,!789Issue #3210310: Adjust Database API to remove deprecated Drupal 9 code in Drupal 10
<?php
/**
* @file
* Hooks provided by the Edit module.
*/
/**
* @addtogroup hooks
* @{
*/
/**
* 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.
*
* @param array &$editors
* An array of informations on existing in-place editors, as collected by the
* annotation discovery mechanism.
*
* @see \Drupal\edit\Annotation\InPlaceEditor
* @see \Drupal\edit\Plugin\EditorManager
*/
function hook_edit_editor_alter(&$editors) {
// Cleanly override editor.module's in-place editor plugin.
$editors['editor']['class'] = 'Drupal\advanced_editor\Plugin\edit\editor\AdvancedEditor';
}
/**
* @} End of "addtogroup hooks".
*/
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment