function ContentTranslationHooks::menuLinksDiscoveredAlter
Same name and namespace in other branches
- 11.x core/modules/content_translation/src/Hook/ContentTranslationHooks.php \Drupal\content_translation\Hook\ContentTranslationHooks::menuLinksDiscoveredAlter()
Implements hook_menu_links_discovered_alter().
Attributes
#[Hook('menu_links_discovered_alter')]
File
-
core/
modules/ content_translation/ src/ Hook/ ContentTranslationHooks.php, line 381
Class
- ContentTranslationHooks
- Hook implementations for content_translation.
Namespace
Drupal\content_translation\HookCode
public function menuLinksDiscoveredAlter(array &$links) : void {
// Clarify where translation settings are located.
$links['language.content_settings_page']['title'] = new TranslatableMarkup('Content language and translation');
$links['language.content_settings_page']['description'] = new TranslatableMarkup('Configure language and translation support for content.');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.