You are here

static function RequestCloseSubscriber::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php \Drupal\Core\EventSubscriber\RequestCloseSubscriber::getSubscribedEvents()

Registers the methods in this class that should be listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/lib/Drupal/Core/EventSubscriber/RequestCloseSubscriber.php, line 56
Contains \Drupal\Core\EventSubscriber\RequestCloseSubscriber.

Class

RequestCloseSubscriber
Subscriber for all responses.

Namespace

Drupal\Core\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::TERMINATE][] = array(
    'onTerminate',
    100,
  );
  return $events;
}