X-Git-Url: http://www.aleph1.co.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=vendor%2Fdrupal%2Fconsole-core%2Fdist%2Fchain%2Fform-sample.yml;fp=vendor%2Fdrupal%2Fconsole-core%2Fdist%2Fchain%2Fform-sample.yml;h=b0fb9ec49cf720b9f5f4d2cbc54816bff9be5c72;hb=9917807b03b64faf00f6a1f29dcb6eafc454efa5;hp=0000000000000000000000000000000000000000;hpb=aea91e65e895364e460983b890e295aa5d5540a5;p=yaffs-website diff --git a/vendor/drupal/console-core/dist/chain/form-sample.yml b/vendor/drupal/console-core/dist/chain/form-sample.yml new file mode 100644 index 000000000..b0fb9ec49 --- /dev/null +++ b/vendor/drupal/console-core/dist/chain/form-sample.yml @@ -0,0 +1,38 @@ +command: + name: generate:example:form + description: 'Generate form example' +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 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