Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / src / Command / Drupal_8 / Form / Confirm.php
diff --git a/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Form/Confirm.php b/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Form/Confirm.php
new file mode 100644 (file)
index 0000000..3ee3359
--- /dev/null
@@ -0,0 +1,30 @@
+<?php
+
+namespace DrupalCodeGenerator\Command\Drupal_8\Form;
+
+use Symfony\Component\Console\Input\InputInterface;
+use Symfony\Component\Console\Output\OutputInterface;
+
+/**
+ * Implements d8:form:confirm command.
+ */
+class Confirm extends Base {
+
+  protected $name = 'd8:form:confirm';
+  protected $description = 'Generates a confirmation form';
+  protected $alias = 'confirm-form';
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function interact(InputInterface $input, OutputInterface $output) {
+    $options = [
+      'default_class' => 'ExampleConfirmForm',
+      'default_form_id' => '{machine_name}_example_confirm',
+      'default_permission' => 'administer site configuration',
+      'template' => 'd8/form/confirm.twig',
+    ];
+    $this->doInteract($input, $output, $options);
+  }
+
+}