function MenuTreeStorageInterface::loadByRoute
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::loadByRoute()
- 10 core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::loadByRoute()
- 11.x core/lib/Drupal/Core/Menu/MenuTreeStorageInterface.php \Drupal\Core\Menu\MenuTreeStorageInterface::loadByRoute()
Loads multiple plugin definitions from the storage based on route.
Parameters
string $route_name: The route name.
array $route_parameters: (optional) The route parameters. Defaults to an empty array.
string $menu_name: (optional) Restricts the found links to just those in the named menu.
Return value
array An array of menu link definitions keyed by ID and ordered by depth.
1 method overrides MenuTreeStorageInterface::loadByRoute()
- MenuTreeStorage::loadByRoute in core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorage.php
File
-
core/
lib/ Drupal/ Core/ Menu/ MenuTreeStorageInterface.php, line 89
Class
- MenuTreeStorageInterface
- Defines an interface for storing a menu tree containing menu link IDs.
Namespace
Drupal\Core\MenuCode
public function loadByRoute($route_name, array $route_parameters = [], $menu_name = NULL);
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.