public function CurrentUser::getCacheMaxAge in Commerce Core 8.2
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_validator/ CurrentUser.php, line 162
Class
- CurrentUser
- Validates whether the argument matches the current user.
Namespace
Drupal\commerce\Plugin\views\argument_validatorCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}