MenuLinkTree::__construct
public function 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\MenuCode
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; }
© 2001–2016 by the original authors
Licensed under the GNU General Public License, version 2 and later.
Drupal is a registered trademark of Dries Buytaert.
https://api.drupal.org/api/drupal/core!lib!Drupal!Core!Menu!MenuLinkTree.php/function/MenuLinkTree::__construct/8.1.x