Version 1
[yaffs-website] / web / modules / contrib / ctools / tests / modules / ctools_wizard_test / src / Form / ExampleConfigEntityExistingForm.php
diff --git a/web/modules/contrib/ctools/tests/modules/ctools_wizard_test/src/Form/ExampleConfigEntityExistingForm.php b/web/modules/contrib/ctools/tests/modules/ctools_wizard_test/src/Form/ExampleConfigEntityExistingForm.php
new file mode 100644 (file)
index 0000000..0ffca3d
--- /dev/null
@@ -0,0 +1,37 @@
+<?php
+
+namespace Drupal\ctools_wizard_test\Form;
+
+use Drupal\Core\Form\FormBase;
+use Drupal\Core\Form\FormStateInterface;
+
+/**
+ * Simple wizard step form.
+ */
+class ExampleConfigEntityExistingForm extends FormBase {
+
+  /**
+   * {@inheritdoc}
+   */
+  public function getFormId() {
+    return 'ctools_wizard_test_config_entity_existing_form';
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function buildForm(array $form, FormStateInterface $form_state) {
+    $form['existing'] = array(
+      '#markup' => '<p>This step only shows if the entity is already existing!</p>',
+    );
+    return $form;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function submitForm(array &$form, FormStateInterface $form_state) {
+    // Do nothing!
+  }
+
+}