You are here

public function CurrentContext::getCacheMaxAge in Config Pages 8.2

Same name and namespace in other branches
  1. 8.3 src/Plugin/views/argument_default/CurrentContext.php \Drupal\config_pages\Plugin\views\argument_default\CurrentContext::getCacheMaxAge()

The maximum age for which this object may be cached.

Return value

int The maximum time in seconds that this object may be cached.

Overrides CacheableDependencyInterface::getCacheMaxAge

File

src/Plugin/views/argument_default/CurrentContext.php, line 68

Class

CurrentContext
Default argument plugin to use the current context value.

Namespace

Drupal\config_pages\Plugin\views\argument_default

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}