You are here

static function TestClass::getSubscribedEvents in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::getSubscribedEvents()

Registers methods as kernel listeners.

Return value

array An array of event listener definitions.

Overrides EventSubscriberInterface::getSubscribedEvents

File

core/modules/system/tests/modules/service_provider_test/src/TestClass.php, line 65
Contains \Drupal\service_provider_test\TestClass.

Class

TestClass

Namespace

Drupal\service_provider_test

Code

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