You are here

public static function ResponseGeneratorSubscriber::getSubscribedEvents in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/EventSubscriber/ResponseGeneratorSubscriber.php \Drupal\Core\EventSubscriber\ResponseGeneratorSubscriber::getSubscribedEvents()
  2. 9 core/lib/Drupal/Core/EventSubscriber/ResponseGeneratorSubscriber.php \Drupal\Core\EventSubscriber\ResponseGeneratorSubscriber::getSubscribedEvents()

File

core/lib/Drupal/Core/EventSubscriber/ResponseGeneratorSubscriber.php, line 35

Class

ResponseGeneratorSubscriber
Response subscriber to add X-Generator header tag.

Namespace

Drupal\Core\EventSubscriber

Code

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