You are here

public static function ThemeTestSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/theme_test/src/EventSubscriber/ThemeTestSubscriber.php \Drupal\theme_test\EventSubscriber\ThemeTestSubscriber::getSubscribedEvents()
  2. 9 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 96

Class

ThemeTestSubscriber
Theme test subscriber for controller requests.

Namespace

Drupal\theme_test\EventSubscriber

Code

public static function getSubscribedEvents() : array {
  $events[KernelEvents::REQUEST][] = [
    'onRequest',
  ];
  $events[KernelEvents::VIEW][] = [
    'onView',
    -1000,
  ];
  return $events;
}