You are here

public function MenuRouterRebuildSubscriber::__construct in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber::__construct()

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 42
Contains \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber.

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;
}