function MenuLinkTree::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::__construct()
  2. 8.9.x core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::__construct()
  3. 10 core/lib/Drupal/Core/Menu/MenuLinkTree.php \Drupal\Core\Menu\MenuLinkTree::__construct()

Constructs a \Drupal\Core\Menu\MenuLinkTree object.

Parameters

\Drupal\Core\Menu\MenuTreeStorageInterface $treeStorage: The menu link tree storage.

\Drupal\Core\Menu\MenuLinkManagerInterface $menuLinkManager: The menu link plugin manager.

\Drupal\Core\Routing\RouteProviderInterface $routeProvider: The route provider to load routes by name.

\Drupal\Core\Menu\MenuActiveTrailInterface $menuActiveTrail: The active menu trail service.

\Drupal\Core\Utility\CallableResolver $callableResolver: The callable resolver.

File

core/lib/Drupal/Core/Menu/MenuLinkTree.php, line 32

Class

MenuLinkTree
Implements the loading, transforming and rendering of menu link trees.

Namespace

Drupal\Core\Menu

Code

public function __construct(MenuTreeStorageInterface $treeStorage, MenuLinkManagerInterface $menuLinkManager, RouteProviderInterface $routeProvider, MenuActiveTrailInterface $menuActiveTrail, CallableResolver $callableResolver) {
}

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