Response subscriber to handle finished responses.
Hierarchy
- class \Drupal\Core\EventSubscriber\FinishResponseSubscriber implements EventSubscriberInterface
 
File
- core/lib/Drupal/Core/EventSubscriber/FinishResponseSubscriber.php, line 22
 
Namespace
Drupal\Core\EventSubscriber
Members
| Name | Modifiers | Type | Description | 
|---|---|---|---|
| FinishResponseSubscriber::$cacheContexts | protected | property | The cache contexts manager service. | 
| FinishResponseSubscriber::$config | protected | property | A config object for the system performance configuration. | 
| FinishResponseSubscriber::$debugCacheabilityHeaders | protected | property | Whether to send cacheability headers for debugging purposes. | 
| FinishResponseSubscriber::$languageManager | protected | property | The language manager object for retrieving the correct language code. | 
| FinishResponseSubscriber::$requestPolicy | protected | property | A policy rule determining the cacheability of a request. | 
| FinishResponseSubscriber::$responsePolicy | protected | property | A policy rule determining the cacheability of the response. | 
| FinishResponseSubscriber::getSubscribedEvents | public static | function | Registers the methods in this class that should be listeners. Overrides EventSubscriberInterface::getSubscribedEvents | 
| FinishResponseSubscriber::isCacheControlCustomized | protected | function | Determine whether the given response has a custom Cache-Control header. | 
| FinishResponseSubscriber::onRespond | public | function | Sets extra headers on successful responses. | 
| FinishResponseSubscriber::setCacheControlNoCache | protected | function | Disable caching in the browser and for HTTP/1.1 proxies and clients. | 
| FinishResponseSubscriber::setExpiresNoCache | protected | function | Disable caching in ancient browsers and for HTTP/1.0 proxies and clients. | 
| FinishResponseSubscriber::setResponseCacheable | protected | function | Add Cache-Control and Expires headers to a cacheable response. | 
| FinishResponseSubscriber::setResponseNotCacheable | protected | function | Add Cache-Control and Expires headers to a response which is not cacheable. | 
| FinishResponseSubscriber::__construct | public | function | Constructs a FinishResponseSubscriber object. | 
Please login to continue.