public function MaintenanceModeSubscriber::__construct in Zircon Profile 8
Same name in this branch
- 8 core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\Core\EventSubscriber\MaintenanceModeSubscriber::__construct()
- 8 core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php \Drupal\user\EventSubscriber\MaintenanceModeSubscriber::__construct()
Same name and namespace in other branches
- 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\EventSubscriberCode
public function __construct(MaintenanceModeInterface $maintenance_mode, AccountInterface $account) {
$this->maintenanceMode = $maintenance_mode;
$this->account = $account;
}