public static function FormTestEventSubscriber::getSubscribedEvents in Drupal 9
Same name and namespace in other branches
- 8 core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::getSubscribedEvents()
- 10 core/modules/system/tests/modules/form_test/src/EventSubscriber/FormTestEventSubscriber.php \Drupal\form_test\EventSubscriber\FormTestEventSubscriber::getSubscribedEvents()
File
- core/
modules/ system/ tests/ modules/ form_test/ src/ EventSubscriber/ FormTestEventSubscriber.php, line 41
Class
- FormTestEventSubscriber
- Test event subscriber to add new attributes to the request.
Namespace
Drupal\form_test\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::REQUEST][] = [
'onKernelRequest',
];
$events[KernelEvents::RESPONSE][] = [
'onKernelResponse',
];
return $events;
}