static function KernelDestructionSubscriber::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/KernelDestructionSubscriber.php, line 63
Contains \Drupal\Core\EventSubscriber\KernelDestructionSubscriber.

Class

KernelDestructionSubscriber
Destructs services that are initiated and tagged with "needs_destruction".

Namespace

Drupal\Core\EventSubscriber

Code

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