123456789101112131415161718192021222324252627282930313233 |
- <?php
- namespace Drupal\Core\Cache;
- /**
- * Trait to implement CacheableDependencyInterface for unchanging objects.
- *
- * @see \Drupal\Core\Cache\CacheableDependencyInterface
- */
- trait UnchangingCacheableDependencyTrait {
- /**
- * {@inheritdoc}
- */
- public function getCacheContexts() {
- return [];
- }
- /**
- * {@inheritdoc}
- */
- public function getCacheTags() {
- return [];
- }
- /**
- * {@inheritdoc}
- */
- public function getCacheMaxAge() {
- return Cache::PERMANENT;
- }
- }
|