-
Notifications
You must be signed in to change notification settings - Fork 60
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[generate:block:type] New command (#254)
* Translate command generate:block:type * organized translation on block content type
- Loading branch information
1 parent
d0a2096
commit 0d3b804
Showing
1 changed file
with
26 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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" |