This repository has been archived on 2025-01-19. You can view files and clone it, but cannot push or open issues or pull requests.
drupalcampbristol/vendor/drupal/console-en/translations/generate.plugin.block.yml
2018-11-23 12:29:20 +00:00

36 lines
1.6 KiB
YAML

description: 'Generate a plugin block'
help: 'The <info>generate:plugin:block</info> command helps you generate a new Plugin block.'
welcome: 'Welcome to the Drupal Plugin Block generator'
options:
module: 'The Module name.'
class: 'Plugin class name'
label: 'Plugin label'
plugin-id: 'Plugin id'
inputs: 'Create inputs in a form.'
services: 'Load services from the container.'
theme-region: 'Theme region to render Plugin Block'
questions:
module: 'Enter the module name'
class: 'Enter the plugin class name'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
services: 'Enter your service'
theme-region: 'Enter the theme region to render the Plugin Block.'
type: 'Enter New field type'
label: 'Input label'
description: 'Description'
default-value: 'Default value'
weight: 'Weight for input item'
messages:
inputs: "\nYou can add input fields to create special configurations in the block.\nThis is optional, press <info>enter</info> to <info>continue</info>"
invalid-theme-region: 'Region "%s" is invalid'
examples:
- 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'
execution: |
drupal generate:plugin:block \
--module="modulename" \
--class="DefaultBlock" \
--label="Default block" \
--plugin-id="default_block" \
--theme-region="header" \
--inputs='"name":"inputtext", "type":"text_format", "label":"InputText", "options":"", "description":"Just an input text", "maxlength":"", "size":"", "default_value":"", "weight":"0", "fieldset":""'