Updated all the contrib modules to their latest versions.
[yaffs-website] / web / modules / contrib / entity_browser / tests / modules / entity_browser_test / src / Cache / Context / DummyCacheContext.php
1 <?php
2
3 namespace Drupal\entity_browser_test\Cache\Context;
4
5 use Drupal\Core\Cache\CacheableMetadata;
6 use Drupal\Core\Cache\Context\CacheContextInterface;
7
8 /**
9  * Dummy cache context for Entity browser test purposes.
10  *
11  * Cache context ID: 'eb_dummy'.
12  */
13 class DummyCacheContext implements CacheContextInterface {
14
15   /**
16    * {@inheritdoc}
17    */
18   public static function getLabel() {
19     return t('Dummy context');
20   }
21
22   /**
23    * {@inheritdoc}
24    */
25   public function getContext() {
26     return "dummy";
27   }
28
29   /**
30    * {@inheritdoc}
31    */
32   public function getCacheableMetadata() {
33     return new CacheableMetadata();
34   }
35
36 }