You are here

public function RefinableCacheableDependencyTrait::mergeCacheMaxAge in Drupal 8

Same name and namespace in other branches
  1. 9 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::mergeCacheMaxAge()
1 call to RefinableCacheableDependencyTrait::mergeCacheMaxAge()
RefinableCacheableDependencyTrait::addCacheableDependency in core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php

File

core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php, line 51

Class

RefinableCacheableDependencyTrait
Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface.

Namespace

Drupal\Core\Cache

Code

public function mergeCacheMaxAge($max_age) {
  $this->cacheMaxAge = Cache::mergeMaxAges($this->cacheMaxAge, $max_age);
  return $this;
}