function AccessResult::getCacheMaxAge
Same name in other branches
- 8.9.x core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::getCacheMaxAge()
- 10 core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::getCacheMaxAge()
- 11.x core/lib/Drupal/Core/Access/AccessResult.php \Drupal\Core\Access\AccessResult::getCacheMaxAge()
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 222
Class
- AccessResult
- Value object for passing an access result with cacheability metadata.
Namespace
Drupal\Core\AccessCode
public function getCacheMaxAge() {
return $this->cacheMaxAge;
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.