Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. ContentTranslationHooks.php

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) : 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.');
}
RSS feed
Powered by Drupal