function PagersCacheContext::getCacheableMetadata

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php \Drupal\Core\Cache\Context\PagersCacheContext::getCacheableMetadata()
  2. 8.9.x core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php \Drupal\Core\Cache\Context\PagersCacheContext::getCacheableMetadata()
  3. 10 core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php \Drupal\Core\Cache\Context\PagersCacheContext::getCacheableMetadata()

Overrides CalculatedCacheContextInterface::getCacheableMetadata

File

core/lib/Drupal/Core/Cache/Context/PagersCacheContext.php, line 59

Class

PagersCacheContext
Defines a cache context for "per page in a pager" caching.

Namespace

Drupal\Core\Cache\Context

Code

public function getCacheableMetadata($pager_id = NULL) {
    return new CacheableMetadata();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.