Defines a cache context for "per page in a pager" caching.
Cache context ID: 'url.query_args.pagers' (to vary by all pagers). Calculated cache context ID: 'url.query_args.pagers:%pager_id', e.g. 'url.query_args.pagers:1' (to vary by the pager with ID 1).
Hierarchy
- class \Drupal\Core\Cache\Context\RequestStackCacheContextBase
- class \Drupal\Core\Cache\Context\PagersCacheContext implements CalculatedCacheContextInterface
File
- core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php, line 14
Namespace
Drupal\Core\Cache\Context
Members
Name | Modifiers | Type | Description |
---|---|---|---|
PagersCacheContext::getCacheableMetadata | public | function | Gets the cacheability metadata for the context based on the parameter value. Overrides CalculatedCacheContextInterface::getCacheableMetadata |
PagersCacheContext::getContext | public | function | Overrides CalculatedCacheContextInterface::getContext |
PagersCacheContext::getLabel | public static | function | Returns the label of the cache context. Overrides CalculatedCacheContextInterface::getLabel |
RequestStackCacheContextBase::$requestStack | protected | property | The request stack. |
RequestStackCacheContextBase::__construct | public | function | Constructs a new RequestStackCacheContextBase class. |
Please login to continue.