function UncacheableDependencyTrait::getCacheMaxAge

Same name in other branches
  1. 9 core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheMaxAge()
  2. 8.9.x core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheMaxAge()
  3. 10 core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php \Drupal\Core\Cache\UncacheableDependencyTrait::getCacheMaxAge()

File

core/lib/Drupal/Core/Cache/UncacheableDependencyTrait.php, line 31

Class

UncacheableDependencyTrait
Trait to implement CacheableDependencyInterface for uncacheable objects.

Namespace

Drupal\Core\Cache

Code

public function getCacheMaxAge() {
    return 0;
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.