Skip to content
Browse files

generate:plugin:rules:condition translation file (#191)

  • Loading branch information...
LOBsTerr authored and enzolutions committed Apr 8, 2019
1 parent 90be241 commit d6c5d6f8526608bcc12904f9a68f2ec85d18c13b
Showing with 32 additions and 0 deletions.
  1. +32 −0 translations/generate.plugin.rules.condition.yml
@@ -0,0 +1,32 @@
description: 'Generate a plugin rule condition'
help: 'The <info>generate:plugin:rules:condition</info> command helps you generate a new plugin rule condition.'
welcome: 'Welcome to the Drupal Plugin Rules Action generator'
module: common.options.module
class: 'Plugin class'
label: 'Plugin label'
plugin-id: 'Plugin id'
category: 'Plugin category'
context: 'Plugin context'
module: common.questions.module
class: 'Enter plugin class'
label: 'Enter the plugin label'
plugin-id: 'Enter the plugin id'
category: 'Enter plugin category'
context: 'Would you like to add a context?'
another-context: 'Would you like to add another context?'
context-name: 'Enter context name'
context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)'
context-label: 'Enter context label'
context-description: 'Enter context description'
- description: 'Generate a rule condition plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
execution: |
drupal generate:plugin:rules:condition \
--module="modulename" \
--class="DefaultAction" \
--label="Default Action" \
--plugin-id="default_condition" \
--category="Action category" \
--context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"'

0 comments on commit d6c5d6f

Please sign in to comment.
You can’t perform that action at this time.