Version 1
[yaffs-website] / web / modules / contrib / ctools / src / ContextMapperInterface.php
diff --git a/web/modules/contrib/ctools/src/ContextMapperInterface.php b/web/modules/contrib/ctools/src/ContextMapperInterface.php
new file mode 100644 (file)
index 0000000..b583817
--- /dev/null
@@ -0,0 +1,21 @@
+<?php
+
+namespace Drupal\ctools;
+
+/**
+ * Provides an interface for mapping context configurations to context objects.
+ */
+interface ContextMapperInterface {
+
+  /**
+   * Gathers the static context values.
+   *
+   * @param array[] $static_context_configurations
+   *   An array of static context configurations.
+   *
+   * @return \Drupal\Component\Plugin\Context\ContextInterface[]
+   *   An array of set context values, keyed by context name.
+   */
+  public function getContextValues(array $static_context_configurations);
+
+}