function MenuLinkTreeInterface::load

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

Loads a menu tree with a menu link plugin instance at each element.

Parameters

string $menu_name: The name of the menu.

\Drupal\Core\Menu\MenuTreeParameters $parameters: The parameters to determine which menu links to be loaded into a tree.

Return value

\Drupal\Core\Menu\MenuLinkTreeElement[] A menu link tree.

1 method overrides MenuLinkTreeInterface::load()
MenuLinkTree::load in core/lib/Drupal/Core/Menu/MenuLinkTree.php
Loads a menu tree with a menu link plugin instance at each element.

File

core/lib/Drupal/Core/Menu/MenuLinkTreeInterface.php, line 61

Class

MenuLinkTreeInterface
Defines an interface for loading, transforming and rendering menu link trees.

Namespace

Drupal\Core\Menu

Code

public function load($menu_name, MenuTreeParameters $parameters);

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