public static function TestClass::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/service_provider_test/src/TestClass.php \Drupal\service_provider_test\TestClass::getSubscribedEvents()
- 10 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.
File
- core/
modules/ system/ tests/ modules/ service_provider_test/ src/ TestClass.php, line 60
Class
Namespace
Drupal\service_provider_testCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onKernelRequestTest',
];
$events[KernelEvents::RESPONSE][] = [
'onKernelResponseTest',
];
return $events;
}