MenuLinkManager::__construct
public function MenuLinkManager::__construct
public MenuLinkManager::__construct(MenuTreeStorageInterface $tree_storage, StaticMenuLinkOverridesInterface $overrides, ModuleHandlerInterface $module_handler)
Constructs a \Drupal\Core\Menu\MenuLinkManager object.
Parameters
\Drupal\Core\Menu\MenuTreeStorageInterface $tree_storage: The menu link tree storage.
\Drupal\Core\Menu\StaticMenuLinkOverridesInterface $overrides: The service providing overrides for static links.
\Drupal\Core\Extension\ModuleHandlerInterface $module_handler: The module handler.
File
- core/lib/Drupal/Core/Menu/MenuLinkManager.php, line 108
Class
- MenuLinkManager
- Manages discovery, instantiation, and tree building of menu link plugins.
Namespace
Drupal\Core\MenuCode
public function __construct(MenuTreeStorageInterface $tree_storage, StaticMenuLinkOverridesInterface $overrides, ModuleHandlerInterface $module_handler) { $this->treeStorage = $tree_storage; $this->overrides = $overrides; $this->moduleHandler = $module_handler; }
© 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!MenuLinkManager.php/function/MenuLinkManager::__construct/8.1.x