Skip to content

Commit

Permalink
translations for [generate:plugin:derivative] (#256)
Browse files Browse the repository at this point in the history
  • Loading branch information
nequeteme authored and enzolutions committed Oct 7, 2019
1 parent 0d3b804 commit 30813a8
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions translations/generate.plugin.derivative.yml
@@ -0,0 +1,29 @@
description: 'Generate a custom block plugin derivative'
help: 'The <info>generate:plugin:derivative</info> command helps you generate a new custom plugin block derivative'
welcome: 'Welcome to the Drupal Plugin Block Derivative generator'
options:
module: 'The Module name.'
class: 'The Class name.'
block_label: 'The Block label'
block_description: 'The Block description'
block_id: 'The Block id'
questions:
module: 'Enter the module name'
class: 'Enter the plugin block derivative class name'
block_label: 'Enter the Block label'
block_description: 'Enter the Block description'
block_id: 'Enter the Block id'
suggestions:
class: 'CustomBlockDerivative'
block_description: 'My custom block derivative.'
block_label: 'Custom block derivative'
block_id: 'custom_block_derivative'
examples:
- description: 'Generate a custom view field plugin specifying the module name, the class, a title and its description'
execution: |
drupal generate:plugin:views:field \
--module="modulename" \
--class="CustomBlockDerivative" \
--block-label="Custom block derivative" \
--block-description="My custom block derivative." \
--block-id="custom_block_derivative"

0 comments on commit 30813a8

Please sign in to comment.