Skip to content

Commit

Permalink
[generate:block:type] New command (#254)
Browse files Browse the repository at this point in the history
* Translate command generate:block:type

* organized translation on block content type
  • Loading branch information
gilbertomangones authored and enzolutions committed Sep 27, 2019
1 parent d0a2096 commit 0d3b804
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions translations/generate.block.type.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
description: 'Generate a block content type'
help: 'The <info>generate:block:type</info> command helps you generate a new block content type.'
welcome: 'Welcome to the Drupal Block Type generator'
options:
module: 'The Module name.'
class: 'Block type class name'
block-label: 'Block content type label'
block-description: 'Block content type description'
block-id: 'Block id'
questions:
module: 'Enter the module name'
class: 'Enter the block class name'
block-label: 'Enter the block label'
block-description: 'Enter the block description'
block-id: 'Enter the block content type id'
description: 'Description'
default-value: 'Default value'
messages:
examples:
- description: 'Generate a block content type specifying the module name'
execution: |
drupal generate:block:type \
--module="modulename" \
--class="DefaultBlock" \
--label="Default block" \
--block-id="default_block"

0 comments on commit 0d3b804

Please sign in to comment.