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
diff --git a/web/modules/contrib/entity_browser/tests/modules/entity_browser_test/src/Cache/Context/DummyCacheContext.php b/web/modules/contrib/entity_browser/tests/modules/entity_browser_test/src/Cache/Context/DummyCacheContext.php
new file mode 100644 (file)
index 0000000..ee53905
--- /dev/null
@@ -0,0 +1,36 @@
+<?php
+
+namespace Drupal\entity_browser_test\Cache\Context;
+
+use Drupal\Core\Cache\CacheableMetadata;
+use Drupal\Core\Cache\Context\CacheContextInterface;
+
+/**
+ * Dummy cache context for Entity browser test purposes.
+ *
+ * Cache context ID: 'eb_dummy'.
+ */
+class DummyCacheContext implements CacheContextInterface {
+
+  /**
+   * {@inheritdoc}
+   */
+  public static function getLabel() {
+    return t('Dummy context');
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getContext() {
+    return "dummy";
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getCacheableMetadata() {
+    return new CacheableMetadata();
+  }
+
+}