You are here

public static function HoldTestSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::getSubscribedEvents()
  2. 9 core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php \Drupal\hold_test\EventSubscriber\HoldTestSubscriber::getSubscribedEvents()

File

core/modules/system/tests/modules/hold_test/src/EventSubscriber/HoldTestSubscriber.php, line 70

Class

HoldTestSubscriber
Response subscriber to test hold.

Namespace

Drupal\hold_test\EventSubscriber

Code

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