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'
5 module: 'The Module name.'
6 class: 'Plugin class name'
9 inputs: 'Create inputs in a form.'
10 services: 'Load services from the container.'
11 theme-region: 'Theme region to render Plugin Block'
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'
21 description: 'Description'
22 default-value: 'Default value'
23 weight: 'Weight for input item'
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'
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'
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":""'