W3cubDocs

/Drupal 8

public function MenuRouterRebuildSubscriber::__construct

public MenuRouterRebuildSubscriber::__construct(LockBackendInterface $lock, MenuLinkManagerInterface $menu_link_manager)

Constructs the MenuRouterRebuildSubscriber object.

Parameters

\Drupal\Core\Lock\LockBackendInterface $lock: The lock backend.

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

File

core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php, line 37

Class

MenuRouterRebuildSubscriber
Rebuilds the default menu links and runs menu-specific code if necessary.

Namespace

Drupal\Core\EventSubscriber

Code

public function __construct(LockBackendInterface $lock, MenuLinkManagerInterface $menu_link_manager) {
  $this->lock = $lock;
  $this->menuLinkManager = $menu_link_manager;
}

© 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!EventSubscriber!MenuRouterRebuildSubscriber.php/function/MenuRouterRebuildSubscriber::__construct/8.1.x