public function MenuSelectTreeBuilderInterface::loadMenuTree in Menu Select 8
Same name and namespace in other branches
- 2.0.x src/MenuSelectTreeBuilderInterface.php \Drupal\menu_select\MenuSelectTreeBuilderInterface::loadMenuTree()
Function to build a menu tree from a menu name.
Parameters
string $menu_name: Menu name to use.
int $max_depth: The maximum depth to traverse.
Return value
\Drupal\Core\Menu\MenuLinkTreeElement[] Array of the menu tree.
1 method overrides MenuSelectTreeBuilderInterface::loadMenuTree()
- MenuSelectTreeBuilder::loadMenuTree in src/
MenuSelectTreeBuilder.php - Function to build a menu tree from a menu name.
File
- src/
MenuSelectTreeBuilderInterface.php, line 21
Class
- MenuSelectTreeBuilderInterface
- An interface for the menu select tree builder service.
Namespace
Drupal\menu_selectCode
public function loadMenuTree($menu_name, $max_depth);