function EditorHooks::menuLinksDiscoveredAlter
Same name and namespace in other branches
- 11.x core/modules/editor/src/Hook/EditorHooks.php \Drupal\editor\Hook\EditorHooks::menuLinksDiscoveredAlter()
Implements hook_menu_links_discovered_alter().
Rewrites the menu entries for filter module that relate to the configuration of text editors.
Attributes
#[Hook('menu_links_discovered_alter')]
File
-
core/
modules/ editor/ src/ Hook/ EditorHooks.php, line 71
Class
- EditorHooks
- Hook implementations for editor.
Namespace
Drupal\editor\HookCode
public function menuLinksDiscoveredAlter(array &$links) : void {
$links['filter.admin_overview']['title'] = new TranslatableMarkup('Text formats and editors');
$links['filter.admin_overview']['description'] = new TranslatableMarkup('Select and configure text editors, and how content is filtered when displayed.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.