function UnchangingCacheableDependencyTrait::getCacheMaxAge
2 methods override UnchangingCacheableDependencyTrait::getCacheMaxAge()
- FormattedDateDiff::getCacheMaxAge in core/
lib/ Drupal/ Core/ Datetime/ FormattedDateDiff.php - The maximum age for which this object may be cached.
- HelpTopicSection::getCacheMaxAge in core/
modules/ help/ src/ Plugin/ HelpSection/ HelpTopicSection.php
File
-
core/
lib/ Drupal/ Core/ Cache/ UnchangingCacheableDependencyTrait.php, line 29
Class
- UnchangingCacheableDependencyTrait
- Trait to implement CacheableDependencyInterface for unchanging objects.
Namespace
Drupal\Core\CacheCode
public function getCacheMaxAge() {
return Cache::PERMANENT;
}