You are here

public static function AddHTTPHeaders::getSubscribedEvents in HTTP Response Headers 2.0.x

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

File

src/EventSubscriber/AddHTTPHeaders.php, line 70
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',
    -100,
  ];
  return $events;
}