public function GroupPermission::getCacheMaxAge in Group 8
Same name and namespace in other branches
- 2.0.x src/Plugin/views/access/GroupPermission.php \Drupal\group\Plugin\views\access\GroupPermission::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/ access/ GroupPermission.php, line 169
Class
- GroupPermission
- Access plugin that provides group permission-based access control.
Namespace
Drupal\group\Plugin\views\accessCode
public function getCacheMaxAge() {
return Cache::mergeMaxAges(Cache::PERMANENT, $this->context
->getCacheMaxAge());
}