Version 1
[yaffs-website] / web / modules / contrib / ctools / src / Event / WizardEvent.php
diff --git a/web/modules/contrib/ctools/src/Event/WizardEvent.php b/web/modules/contrib/ctools/src/Event/WizardEvent.php
new file mode 100644 (file)
index 0000000..7123297
--- /dev/null
@@ -0,0 +1,41 @@
+<?php
+
+namespace Drupal\ctools\Event;
+
+use Drupal\ctools\Wizard\FormWizardInterface;
+use Symfony\Component\EventDispatcher\Event;
+
+/**
+ * An event for altering form wizard values.
+ */
+class WizardEvent extends Event {
+
+  /**
+   * @var \Drupal\ctools\Wizard\FormWizardInterface
+   */
+  protected $wizard;
+
+  /**
+   * @var mixed
+   */
+  protected $values;
+
+  function __construct(FormWizardInterface $wizard, $values) {
+    $this->wizard = $wizard;
+    $this->values = $values;
+  }
+
+  public function getWizard() {
+    return $this->wizard;
+  }
+
+  public function getValues() {
+    return $this->values;
+  }
+
+  public function setValues($values) {
+    $this->values = $values;
+    return $this;
+  }
+
+}