You are here

public function Domain::getCacheMaxAge in Domain Access 8

Same name in this branch
  1. 8 domain/src/Plugin/views/argument_default/Domain.php \Drupal\domain\Plugin\views\argument_default\Domain::getCacheMaxAge()
  2. 8 domain/src/Plugin/views/access/Domain.php \Drupal\domain\Plugin\views\access\Domain::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

domain/src/Plugin/views/argument_default/Domain.php, line 67

Class

Domain
Default argument plugin to extract active domain ID.

Namespace

Drupal\domain\Plugin\views\argument_default

Code

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