Upgraded drupal core with security updates
[yaffs-website] / web / core / lib / Drupal / Core / Cache / UncacheableDependencyTrait.php
1 <?php
2
3 namespace Drupal\Core\Cache;
4
5 /**
6  * Trait to implement CacheableDependencyInterface for uncacheable objects.
7  *
8  * Use this for objects that are never cacheable.
9  *
10  * @see \Drupal\Core\Cache\CacheableDependencyInterface
11  */
12 trait UncacheableDependencyTrait {
13
14   /**
15    * {@inheritdoc}
16    */
17   public function getCacheContexts() {
18     return [];
19   }
20
21   /**
22    * {@inheritdoc}
23    */
24   public function getCacheTags() {
25     return [];
26   }
27
28   /**
29    * {@inheritdoc}
30    */
31   public function getCacheMaxAge() {
32     return 0;
33   }
34
35 }