function navigation_menu_links_discovered_alter
Same name in other branches
- 10 core/modules/navigation/navigation.module \navigation_menu_links_discovered_alter()
Implements hook_menu_links_discovered_alter().
File
-
core/
modules/ navigation/ navigation.module, line 147
Code
function navigation_menu_links_discovered_alter(&$links) {
$navigation_links = \Drupal::classResolver(NavigationContentLinks::class);
assert($navigation_links instanceof NavigationContentLinks);
$navigation_links->addMenuLinks($links);
$navigation_links->removeAdminContentLink($links);
$navigation_links->removeHelpLink($links);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.