You are here

public static function AddHTTPHeaders::getSubscribedEvents in HTTP Response Headers 8

Same name and namespace in other branches
  1. 8.2 src/EventSubscriber/AddHTTPHeaders.php \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders::getSubscribedEvents()
  2. 2.0.x src/EventSubscriber/AddHTTPHeaders.php \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders::getSubscribedEvents()

File

src/EventSubscriber/AddHTTPHeaders.php, line 54
Contains \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders.

Class

AddHTTPHeaders
Provides AddHTTPHeaders.

Namespace

Drupal\http_response_headers\EventSubscriber

Code

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