Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-core / dist / chain / form-sample.yml
1 command:
2   name: generate:example:form
3   description: 'Generate form example'
4 commands:
5   - command: generate:form:config
6     options:
7       module: example
8       class: ConfigForm
9       form-id: config_form
10       services:
11         - state
12       inputs:
13         - name: email
14           type: email
15           label: Email
16           description: 'Enter a valid email.'
17           fieldset: ''
18         - name: api_key
19           type: textfield
20           label: 'API Key'
21           description: 'Enter API Key'
22           maxlength: '64'
23           size: '64'
24         - name: number_field
25           type: number
26           label: 'Number field'
27           description: 'Enter a valid number.'
28         - name: big_text
29           type: textarea
30           label: 'Big text'
31           description: 'Enter a big text, you can user <enter> key'
32       path: '/admin/config/form'
33       menu_link_gen: true
34       menu_link_title: 'Example Config Form'
35       menu_parent: system.admin_config_system
36       menu_link_desc: 'A Example Config Form.'
37   # Rebuild routes
38   - command: router:rebuild