PagersCacheContext

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

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.
doc_Drupal
2016-10-29 09:32:58
Comments
Leave a Comment

Please login to continue.