Version 1
[yaffs-website] / vendor / drupal / console-core / config / dist / chain / form-sample.yml
diff --git a/vendor/drupal/console-core/config/dist/chain/form-sample.yml b/vendor/drupal/console-core/config/dist/chain/form-sample.yml
new file mode 100644 (file)
index 0000000..9195236
--- /dev/null
@@ -0,0 +1,35 @@
+commands:
+  - command: generate:form:config
+    options:
+      module: example
+      class: ConfigForm
+      form-id: config_form
+      services:
+        - state
+      inputs:
+        - name: email
+          type: email
+          label: Email
+          description: 'Enter a valid email.'
+          fieldset: ''
+        - name: api_key
+          type: textfield
+          label: 'API Key'
+          description: 'Enter API Key'
+          maxlength: '64'
+          size: '64'
+        - name: number_field
+          type: number
+          label: 'Number field'
+          description: 'Enter a valid number.'
+        - name: big_text
+          type: textarea
+          label: 'Big text'
+          description: 'Enter a big text, you can user <enter> key'
+      path: '/admin/config/form'
+      menu_link_gen: true
+      menu_link_title: 'Example Config Form'
+      menu_parent: system.admin_config_system
+      menu_link_desc: 'A Example Config Form.'
+# Rebuild routes
+  - command: router:rebuild