function ContentTranslationHooks::menuLinksDiscoveredAlter

Implements hook_menu_links_discovered_alter().

File

core/modules/content_translation/src/Hook/ContentTranslationHooks.php, line 335

Class

ContentTranslationHooks
Hook implementations for content_translation.

Namespace

Drupal\content_translation\Hook

Code

public function menuLinksDiscoveredAlter(array &$links) {
    // 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.