You are here

public function CacheableDependencyTrait::getCacheMaxAge in Drupal 9

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php \Drupal\Core\Cache\CacheableDependencyTrait::getCacheMaxAge()
4 methods override CacheableDependencyTrait::getCacheMaxAge()
AccessResult::getCacheMaxAge in core/lib/Drupal/Core/Access/AccessResult.php
The maximum age for which this object may be cached.
CacheableMetadata::getCacheMaxAge in core/lib/Drupal/Core/Cache/CacheableMetadata.php
The maximum age for which this object may be cached.
ConfigBase::getCacheMaxAge in core/lib/Drupal/Core/Config/ConfigBase.php
The maximum age for which this object may be cached.
EntityBase::getCacheMaxAge in core/lib/Drupal/Core/Entity/EntityBase.php
The maximum age for which this object may be cached.

File

core/lib/Drupal/Core/Cache/CacheableDependencyTrait.php, line 63

Class

CacheableDependencyTrait
Trait for \Drupal\Core\Cache\CacheableDependencyInterface.

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge() {
  return $this->cacheMaxAge;
}