public function CurrentUserRoles::getCacheMaxAge in MERCI (Manage Equipment Reservations, Checkout and Inventory) 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_default/ CurrentUserRoles.php, line 40 - Contains \Drupal\merci\Plugin\views\argument_default\CurrentUserRoles.
Class
- CurrentUserRoles
- Default argument plugin to extract the current user
Namespace
Drupal\merci\Plugin\views\argument_defaultCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}