You are here

public function UnchangingCacheableDependencyTrait::getCacheMaxAge in Drupal 10

Same name and namespace in other branches
  1. 8 core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php \Drupal\Core\Cache\UnchangingCacheableDependencyTrait::getCacheMaxAge()
  2. 9 core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php \Drupal\Core\Cache\UnchangingCacheableDependencyTrait::getCacheMaxAge()

File

core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php, line 29

Class

UnchangingCacheableDependencyTrait
Trait to implement CacheableDependencyInterface for unchanging objects.

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge() {
  return Cache::PERMANENT;
}