Skip to content

Commit 0d3b804

Browse files
gilbertomangonesenzolutions
authored andcommitted
[generate:block:type] New command (#254)
* Translate command generate:block:type * organized translation on block content type
1 parent d0a2096 commit 0d3b804

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
description: 'Generate a block content type'
2+
help: 'The <info>generate:block:type</info> command helps you generate a new block content type.'
3+
welcome: 'Welcome to the Drupal Block Type generator'
4+
options:
5+
module: 'The Module name.'
6+
class: 'Block type class name'
7+
block-label: 'Block content type label'
8+
block-description: 'Block content type description'
9+
block-id: 'Block id'
10+
questions:
11+
module: 'Enter the module name'
12+
class: 'Enter the block class name'
13+
block-label: 'Enter the block label'
14+
block-description: 'Enter the block description'
15+
block-id: 'Enter the block content type id'
16+
description: 'Description'
17+
default-value: 'Default value'
18+
messages:
19+
examples:
20+
- description: 'Generate a block content type specifying the module name'
21+
execution: |
22+
drupal generate:block:type \
23+
--module="modulename" \
24+
--class="DefaultBlock" \
25+
--label="Default block" \
26+
--block-id="default_block"

0 commit comments

Comments
 (0)