function ThemeTestSubscriber::getSubscribedEvents
Same name in other branches
- 9 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::getSubscribedEvents()
- 8.9.x core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::getSubscribedEvents()
- 10 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::getSubscribedEvents()
File
-
core/
modules/ system/ tests/ modules/ theme_test/ src/ EventSubscriber/ ThemeTestSubscriber.php, line 98
Class
- ThemeTestSubscriber
- Theme test subscriber for controller requests.
Namespace
Drupal\theme_test\EventSubscriberCode
public static function getSubscribedEvents() : array {
$events[KernelEvents::REQUEST][] = [
'onRequest',
];
$events[KernelEvents::VIEW][] = [
'onView',
-1000,
];
return $events;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.