public static function SessionTestSubscriber::getSubscribedEvents in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/system/tests/modules/session_test/src/EventSubscriber/SessionTestSubscriber.php \Drupal\session_test\EventSubscriber\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
- core/
modules/ system/ tests/ modules/ session_test/ src/ EventSubscriber/ SessionTestSubscriber.php, line 56 - Contains \Drupal\session_test\EventSubscriber\SessionTestSubscriber.
Class
- SessionTestSubscriber
- Defines a test session subscriber that checks whether the session is empty.
Namespace
Drupal\session_test\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = array(
'onKernelResponseSessionTest',
);
$events[KernelEvents::REQUEST][] = array(
'onKernelRequestSessionTest',
);
return $events;
}