function MenuLinkManagerInterface::loadLinksByRoute

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::loadLinksByRoute()
  2. 10 core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::loadLinksByRoute()
  3. 11.x core/lib/Drupal/Core/Menu/MenuLinkManagerInterface.php \Drupal\Core\Menu\MenuLinkManagerInterface::loadLinksByRoute()

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.

1 method overrides MenuLinkManagerInterface::loadLinksByRoute()
MenuLinkManager::loadLinksByRoute in core/lib/Drupal/Core/Menu/MenuLinkManager.php
Loads multiple plugin instances based on route.

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 = [], $menu_name = NULL);

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.