public static function AddHTTPHeaders::getSubscribedEvents in HTTP Response Headers 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/AddHTTPHeaders.php \Drupal\http_response_headers\EventSubscriber\AddHTTPHeaders::getSubscribedEvents()
- 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\EventSubscriberCode
public static function getSubscribedEvents() {
$events[KernelEvents::RESPONSE][] = [
'onRespond',
];
return $events;
}