W3cubDocs

/Drupal 8

public function MenuLinkManagerInterface::loadLinksByRoute

public MenuLinkManagerInterface::loadLinksByRoute($route_name, array $route_parameters = array(), $menu_name = NULL)

Loads multiple plugin instances 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

\Drupal\Core\Menu\MenuLinkInterface[] An array of instances keyed by plugin ID.

File

core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php, line 75

Class

MenuLinkManagerInterface
Defines an interface for managing menu links and storing their definitions.

Namespace

Drupal\Core\Menu

Code

public function loadLinksByRoute($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!MenuLinkManagerInterface.php/function/MenuLinkManagerInterface::loadLinksByRoute/8.1.x