function MenuRouterRebuildSubscriber::__construct

Same name in other branches
  1. 9 core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber::__construct()
  2. 8.9.x core/lib/Drupal/Core/EventSubscriber/MenuRouterRebuildSubscriber.php \Drupal\Core\EventSubscriber\MenuRouterRebuildSubscriber::__construct()
  3. 10 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 $menuLinkManager: The menu link plugin manager.

\Drupal\Core\Database\Connection $connection: The database connection.

\Drupal\Core\Database\ReplicaKillSwitch $replicaKillSwitch: The replica kill switch.

\Psr\Log\LoggerInterface $logger: The logger.

File

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

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 $menuLinkManager, Connection $connection, ReplicaKillSwitch $replicaKillSwitch, LoggerInterface $logger) {
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.