public MaintenanceModeSubscriber::__construct(MaintenanceModeInterface $maintenance_mode, AccountInterface $account)
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 42
Class
- MaintenanceModeSubscriber
- Maintenance mode subscriber to log out users.
Namespace
Drupal\user\EventSubscriber
Code
public function __construct(MaintenanceModeInterface $maintenance_mode, AccountInterface $account) { $this->maintenanceMode = $maintenance_mode; $this->account = $account; }
Please login to continue.