public function RefinableCacheableDependencyTrait::mergeCacheMaxAge in Drupal 10
Same name and namespace in other branches
- 8 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::mergeCacheMaxAge()
- 9 core/lib/Drupal/Core/Cache/RefinableCacheableDependencyTrait.php \Drupal\Core\Cache\RefinableCacheableDependencyTrait::mergeCacheMaxAge()
File
- core/
lib/ Drupal/ Core/ Cache/ RefinableCacheableDependencyTrait.php, line 51
Class
- RefinableCacheableDependencyTrait
- Trait for \Drupal\Core\Cache\RefinableCacheableDependencyInterface.
Namespace
Drupal\Core\CacheCode
public function mergeCacheMaxAge($max_age) {
$this->cacheMaxAge = Cache::mergeMaxAges($this->cacheMaxAge, $max_age);
return $this;
}