Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.form.config.yml
1 description: 'Generate a new form config'
2 help: 'The <info>generate:form:config</info> command helps you generate a new form config'
3 welcome: 'Welcome to the Drupal Form Config generator'
4 options:
5   module: 'The Module name.'
6   class: 'The form class name'
7   form-id: 'The Form id'
8   services: 'Load services from the container.'
9   config-file: 'Add a config file'
10   inputs: 'Create inputs in a form.'
11   path: 'Enter the form path'
12   menu-link-gen: 'Generate a menu link'
13   menu-link-title: 'A title for the menu link'
14   menu-parent: 'Menu parent'
15   menu-link-desc: 'A description for the menu link'
16 questions:
17   module: 'Enter the module name'
18   class: 'Enter the Form Class name'
19   form-id: 'Enter the Form id'
20   services: 'Enter your service'
21   config-file: 'Do you want to generate a config file?'
22   routing: 'Would you like to register a route for this form?'
23   path: 'Enter the route path'
24   max-amount-characters: 'Maximum amount of characters'
25   textfield-width-in-chars: 'Width of the textfield (in characters)'
26   multiselect-size-in-lines: 'Size of multiselect box (in lines)'
27   input-options: 'Input options separated by comma'
28   menu-link-gen: 'Generate a menu link'
29   menu-link-title: 'Enter a title for the menu link'
30   menu-parent: 'Enter Menu parent'
31   menu-link-desc: 'Enter a description for the menu link'
32   type: 'Enter New field type'
33   label: 'Input label'
34   description: 'Description'
35   default-value: 'Default value'
36   weight: 'Weight for input item'
37 suggestions:
38   description-for-menu: 'A description for the menu entry'
39 examples:
40   - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
41     execution: |
42       drupal generate:form:config  \
43         --module="modulename"  \
44         --class="DefaultForm"  \
45         --form-id="default_form"  \
46         --config-file  \
47         --path="/modulename/form/default"
48   - description: 'Generate a form with 2 fields and a config file specifying the module name, the class, a form id, the inputs and the path'
49     execution: |
50       drupal generate:form:config  \
51         --module="modulename"  \
52         --class="DefaultForm"  \
53         --form-id="default_form"  \
54         --config-file  \
55         --inputs='"name":"inputname", "type":"text_format", "label":"InputName", "options":"", "description":"Just a text input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'  \
56         --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'  \
57         --path="/modulename/form/default"