1 description: 'Generate a new "%s"'
2 help: 'The <info>"%s"</info> command helps you generate a new "%s"'
3 welcome: 'Welcome to the Drupal Form generator'
5 module: 'The Module name.'
6 class: 'The form class name'
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'
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'
34 description: 'Description'
35 default-value: 'Default value'
36 weight: 'Weight for input item'
38 description-for-menu: 'A description for the menu entry'
40 - description: 'Generate an empty form with config file specifying the module name, the class, a form id and the path'
42 drupal generate:form \
43 --module="modulename" \
44 --class="DefaultForm" \
45 --form-id="default_form" \
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'
50 drupal generate:form \
51 --module="modulename" \
52 --class="DefaultForm" \
53 --form-id="default_form" \
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"