You are here

public function MaintenanceModeSubscriber::__construct in Zircon Profile 8

Same name in this branch
  1. 8 core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber::__construct()
  2. 8 core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\user\EventSubscriber\MaintenanceModeSubscriber::__construct()
Same name and namespace in other branches
  1. 8.0 core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\user\EventSubscriber\MaintenanceModeSubscriber::__construct()

Constructs a new MaintenanceModeSubscriber.

Parameters

\Drupal\Core\Site\MaintenanceModeInterface $maintenance_mode: The maintenance mode.

\Drupal\Core\Session\AccountInterface $account: The current user.

File

core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php, line 47
Contains \Drupal\user\EventSubscriber\MaintenanceModeSubscriber.

Class

MaintenanceModeSubscriber
Maintenance mode subscriber to logout users.

Namespace

Drupal\user\EventSubscriber

Code

public function __construct(MaintenanceModeInterface $maintenance_mode, AccountInterface $account) {
  $this->maintenanceMode = $maintenance_mode;
  $this->account = $account;
}