You are here

public function CurrentUserName::getCacheMaxAge in Maestro 3.x

Same name and namespace in other branches
  1. 8.2 src/Plugin/views/argument_default/CurrentUserName.php \Drupal\maestro\Plugin\views\argument_default\CurrentUserName::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/CurrentUserName.php, line 31

Class

CurrentUserName
Default argument plugin to extract the current user name.

Namespace

Drupal\maestro\Plugin\views\argument_default

Code

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