static function SessionTestSubscriber::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/modules/system/tests/modules/session_test/lib/Drupal/session_test/EventSubscriber/SessionTestSubscriber.php, line 51
Contains \Drupal\session_test\EventSubscriber\SessionTestSubscriber.

Class

SessionTestSubscriber
Defines a test session subscriber that checks whether the session is empty.

Namespace

Drupal\session_test\EventSubscriber

Code

static function getSubscribedEvents() {
  $events[KernelEvents::RESPONSE][] = array(
    'onKernelResponseSessionTest',
    300,
  );
  $events[KernelEvents::REQUEST][] = array(
    'onKernelRequestSessionTest',
    300,
  );
  return $events;
}