function MenuLinkManagerInterface::deleteLinksInMenu
Same name in other branches
- 9 core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::deleteLinksInMenu()
- 10 core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::deleteLinksInMenu()
- 11.x core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::deleteLinksInMenu()
Deletes all links having a certain menu name.
If a link is not deletable but is resettable, the link will be reset to have its original menu name, under the assumption that the original menu is not the one we are deleting it from. Note that when resetting, if the original menu name is the same as the menu name passed to this method, the link will not be moved or deleted.
Parameters
string $menu_name: The name of the menu whose links will be deleted or reset.
1 method overrides MenuLinkManagerInterface::deleteLinksInMenu()
- MenuLinkManager::deleteLinksInMenu in core/
lib/ Drupal/ Core/ Menu/ MenuLinkManager.php
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuLinkManagerInterface.php, line 42
Class
- MenuLinkManagerInterface
- Defines an interface for managing menu links and storing their definitions.
Namespace
Drupal\Core\MenuCode
public function deleteLinksInMenu($menu_name);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.