Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.form.alter.yml
1 description: 'Generate an implementation of hook_form_alter() or hook_form_FORM_ID_alter'
2 help: 'The <info>"%s"</info> command helps you generate a new "%s"'
3 welcome: 'Welcome to the Drupal Form Alter generator'
4 options:
5   module: 'The Module name.'
6   form-id: 'Form ID to alter'
7   inputs: 'Create inputs in a form.'
8 questions:
9   module: 'Enter the module name'
10   form-id: 'Enter the Form ID to alter'
11   type: 'Enter New field type'
12   label: 'Input label'
13   description: 'Description'
14   default-value: 'Default value'
15   weight: 'Weight for input item'
16 messages:
17   inputs: "You can add form fields to modify form.\nThis is optional, press <info>enter</info> to <info>continue</info>"
18   loading-forms: 'Loading forms definition from Webprofiler module'
19   hide-form-elements: 'Optionally you can select form items for hide'
20   help-already-implemented: 'The hook form alter was already implemented in module "%s"'
21 examples:
22   - description: 'Generate a hook form alter for an empty form specifying the module name'
23     execution: |
24       drupal generate:form:alter  \
25         --module="modulename"
26   - description: 'Generate a hook form alter with 2 fields specifying the module name and the inputs'
27     execution: |
28       drupal generate:form:alter  \
29         --module="modulename"  \
30         --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'  \
31         --inputs='"name":"email", "type":"email", "label":"Email", "options":"", "description":"Just an email input", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'