public static function CacheControlEventSubscriber::getSubscribedEvents in HTTP Cache Control 8
Same name and namespace in other branches
- 8.2 src/EventSubscriber/CacheControlEventSubscriber.php \Drupal\http_cache_control\EventSubscriber\CacheControlEventSubscriber::getSubscribedEvents()
File
- src/
EventSubscriber/ CacheControlEventSubscriber.php, line 74
Class
- CacheControlEventSubscriber
- Subscriber for adding http cache control headers.
Namespace
Drupal\http_cache_control\EventSubscriberCode
public static function getSubscribedEvents() {
// Response: set header content for security policy.
$events[KernelEvents::RESPONSE][] = [
'setHeaderCacheControl',
-10,
];
return $events;
}