public function AccessResult::getCacheMaxAge in Drupal 8
Same name and namespace in other branches
- 9 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 CacheableDependencyTrait::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 224
Class
- AccessResult
- Value object for passing an access result with cacheability metadata.
Namespace
Drupal\Core\AccessCode
public function getCacheMaxAge() {
return $this->cacheMaxAge;
}