public function CurrentUserName::getCacheMaxAge in Maestro 8.2
Same name and namespace in other branches
- 3.x 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_defaultCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}