function NavigationContentLinks::removeHelpLink

Remove the help link as render it outside any menu.

Parameters

array $links: The array of links being altered.

File

core/modules/navigation/src/NavigationContentLinks.php, line 123

Class

NavigationContentLinks
Build the menu links for the Content menu.

Namespace

Drupal\navigation

Code

public function removeHelpLink(array &$links) : void {
    unset($links['help.main']);
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.