MenuLinkTree::__construct

public MenuLinkTree::__construct(MenuTreeStorageInterface $tree_storage, MenuLinkManagerInterface $menu_link_manager, RouteProviderInterface $route_provider, MenuActiveTrailInterface $menu_active_trail, ControllerResolverInterface $controller_resolver)

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

Parameters

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

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

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

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

\Drupal\Core\Controller\ControllerResolverInterface $controller_resolver: The controller resolver.

File

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

Class

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

Namespace

Drupal\Core\Menu

Code

public function __construct(MenuTreeStorageInterface $tree_storage, MenuLinkManagerInterface $menu_link_manager, RouteProviderInterface $route_provider, MenuActiveTrailInterface $menu_active_trail, ControllerResolverInterface $controller_resolver) {
  $this->treeStorage = $tree_storage;
  $this->menuLinkManager = $menu_link_manager;
  $this->routeProvider = $route_provider;
  $this->menuActiveTrail = $menu_active_trail;
  $this->controllerResolver = $controller_resolver;
}
doc_Drupal
2016-10-29 09:27:19
Comments
Leave a Comment

Please login to continue.