static function MaintenanceModeSubscriber::getSubscribedEvents

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

drupal/core/lib/Drupal/Core/EventSubscriber/MaintenanceModeSubscriber.php, line 55
Definition of Drupal\Core\EventSubscriber\MaintenanceModeSubscriber.

Class

MaintenanceModeSubscriber
Maintenance mode subscriber for controller requests.

Namespace

Drupal\Core\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestMaintenanceModeCheck',
    40,
  );
  return $events;
}