Version 1
[yaffs-website] / web / modules / contrib / ctools / src / Context / AutomaticContext.php
diff --git a/web/modules/contrib/ctools/src/Context/AutomaticContext.php b/web/modules/contrib/ctools/src/Context/AutomaticContext.php
new file mode 100644 (file)
index 0000000..2202229
--- /dev/null
@@ -0,0 +1,25 @@
+<?php
+
+namespace Drupal\ctools\Context;
+
+use Drupal\Core\Plugin\Context\Context;
+
+/**
+ * Provides a class to indicate that this context is always present.
+ *
+ * @internal
+ *
+ * @todo Move into core.
+ */
+class AutomaticContext extends Context {
+
+  /**
+   * Returns TRUE if this context is automatic and always available.
+   *
+   * @return bool
+   */
+  public function isAutomatic() {
+    return TRUE;
+  }
+
+}