public function MenuLinkManager::menuNameInUse in Drupal 8
Same name and namespace in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkManager.php \Drupal\Core\Menu\MenuLinkManager::menuNameInUse()
- 10 core/lib/Drupal/Core/Menu/MenuLinkManager.php \Drupal\Core\Menu\MenuLinkManager::menuNameInUse()
Determines if any links use a given menu name.
Parameters
string $menu_name: The menu name.
Return value
bool TRUE if any links are present in the named menu, FALSE otherwise.
Overrides MenuLinkManagerInterface::menuNameInUse
File
- core/
lib/ Drupal/ Core/ Menu/ MenuLinkManager.php, line 300
Class
- MenuLinkManager
- Manages discovery, instantiation, and tree building of menu link plugins.
Namespace
Drupal\Core\MenuCode
public function menuNameInUse($menu_name) {
$this->treeStorage
->menuNameInUse($menu_name);
}