6510194d09ab14b859ee14734139238710d7b2a2
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.block.yml
1 description: 'Generate a plugin block'
2 help: 'The <info>generate:plugin:block</info> command helps you generate a new Plugin block.'
3 welcome: 'Welcome to the Drupal Plugin Block generator'
4 options:
5   module: 'The Module name.'
6   class: 'Plugin class name'
7   label: 'Plugin label'
8   plugin-id: 'Plugin id'
9   inputs: 'Create inputs in a form.'
10   services: 'Load services from the container.'
11   theme-region: 'Theme region to render Plugin Block'
12 questions:
13   module: 'Enter the module name'
14   class: 'Enter the plugin class name'
15   label: 'Enter the plugin label'
16   plugin-id: 'Enter the plugin id'
17   services: 'Enter your service'
18   theme-region: 'Enter the theme region to render the Plugin Block.'
19   type: 'Enter New field type'
20   label: 'Input label'
21   description: 'Description'
22   default-value: 'Default value'
23   weight: 'Weight for input item'
24 messages:
25   inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press <info>enter</info> to <info>continue</info>"
26   invalid-theme-region: 'Region "%s" is invalid'
27 examples:
28   - description: 'Generate a plugin block in the header region with an input field specifying the module name, the class, the label, its id, the region and the input'
29     execution: |
30       drupal generate:plugin:block  \
31         --module="modulename"  \
32         --class="DefaultBlock"  \
33         --label="Default block"  \
34         --plugin-id="default_block"  \
35         --theme-region="header"  \
36         --inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'