public function AccessResult::getCacheMaxAge in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::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 RefinableCacheableDependencyTrait::getCacheMaxAge
3 calls to AccessResult::getCacheMaxAge()
- AccessResult::andIf in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Combine this access result with another using AND.
- AccessResult::inheritCacheability in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Inherits the cacheability of the other access result, if any.
- AccessResult::orIf in core/
lib/ Drupal/ Core/ Access/ AccessResult.php - Combine this access result with another using OR.
File
- core/
lib/ Drupal/ Core/ Access/ AccessResult.php, line 196 - Contains \Drupal\Core\Access\AccessResult.
Class
- AccessResult
- Value object for passing an access result with cacheability metadata.
Namespace
Drupal\Core\AccessCode
public function getCacheMaxAge() {
return $this->cacheMaxAge;
}