Updated to Drupal 8.5. Core Media not yet in use.
[yaffs-website] / vendor / chi-teck / drupal-code-generator / src / Command / Drupal_8 / Form / Config.php
diff --git a/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Form/Config.php b/vendor/chi-teck/drupal-code-generator/src/Command/Drupal_8/Form/Config.php
new file mode 100644 (file)
index 0000000..a1acb8f
--- /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:config command.
+ */
+class Config extends Base {
+
+  protected $name = 'd8:form:config';
+  protected $description = 'Generates a configuration form';
+  protected $alias = 'config-form';
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function interact(InputInterface $input, OutputInterface $output) {
+    $options = [
+      'default_class' => 'SettingsForm',
+      'default_form_id' => '{machine_name}_settings',
+      'default_permission' => 'administer site configuration',
+      'template' => 'd8/form/config.twig',
+    ];
+    $this->doInteract($input, $output, $options);
+  }
+
+}