function EditorHooks::menuLinksDiscoveredAlter

Implements hook_menu_links_discovered_alter().

Rewrites the menu entries for filter module that relate to the configuration of text editors.

File

core/modules/editor/src/Hook/EditorHooks.php, line 63

Class

EditorHooks
Hook implementations for editor.

Namespace

Drupal\editor\Hook

Code

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.