MaintenanceModeSubscriber::__construct

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;
}
doc_Drupal
2016-10-29 09:25:25
Comments
Leave a Comment

Please login to continue.