function 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\EventSubscriberCode
public function __construct(protected LockBackendInterface $lock, protected MenuLinkManagerInterface $menuLinkManager, protected Connection $connection, protected ReplicaKillSwitch $replicaKillSwitch, protected LoggerInterface $logger) {
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.