function NavigationMenuLinkTree::__construct
Constructs a \Drupal\navigation\Menu\NavigationMenuLinkTree 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.
\Drupal\Core\Extension\ModuleHandlerInterface $moduleHandler: The module handler.
Overrides MenuLinkTree::__construct
File
-
core/
modules/ navigation/ src/ Menu/ NavigationMenuLinkTree.php, line 38
Class
- NavigationMenuLinkTree
- Extends MenuLinkTree to add specific theme suggestions for the navigation.
Namespace
Drupal\navigation\MenuCode
public function __construct(MenuTreeStorageInterface $treeStorage, MenuLinkManagerInterface $menuLinkManager, RouteProviderInterface $routeProvider, MenuActiveTrailInterface $menuActiveTrail, CallableResolver $callableResolver, ModuleHandlerInterface $moduleHandler) {
parent::__construct($treeStorage, $menuLinkManager, $routeProvider, $menuActiveTrail, $callableResolver);
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.