function content_translation_menu_links_discovered_alter

Same name in other branches
  1. 8.9.x core/modules/content_translation/content_translation.module \content_translation_menu_links_discovered_alter()
  2. 10 core/modules/content_translation/content_translation.module \content_translation_menu_links_discovered_alter()
  3. 11.x core/modules/content_translation/content_translation.module \content_translation_menu_links_discovered_alter()

Implements hook_menu_links_discovered_alter().

File

core/modules/content_translation/content_translation.module, line 359

Code

function content_translation_menu_links_discovered_alter(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.