W3cubDocs

/Drupal 8

public function MenuTreeStorageInterface::loadByRoute

public MenuTreeStorageInterface::loadByRoute($route_name, array $route_parameters = array(), $menu_name = NULL)

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.

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\Menu

Code

public function loadByRoute($route_name, array $route_parameters = array(), $menu_name = NULL);

© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuTreeStorageInterface.php/function/MenuTreeStorageInterface::loadByRoute/8.1.x