You are here

public static function MaintenanceModeSubscriber::getSubscribedEvents in Drupal 9

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

File

core/modules/user/src/EventSubscriber/MaintenanceModeSubscriber.php, line 70

Class

MaintenanceModeSubscriber
Maintenance mode subscriber to log out users.

Namespace

Drupal\user\EventSubscriber

Code

public static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = [
    'onKernelRequestMaintenance',
    31,
  ];
  return $events;
}