You are here

public function UnchangingCacheableDependencyTrait::getCacheMaxAge in Zircon Profile 8

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

File

core/lib/Drupal/Core/Cache/UnchangingCacheableDependencyTrait.php, line 34
Contains \Drupal\Core\Cache\UnchangingCacheableDependencyTrait.

Class

UnchangingCacheableDependencyTrait
Trait to implement CacheableDependencyInterface for unchanging objects.

Namespace

Drupal\Core\Cache

Code

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