1 description: 'Generate a plugin rule action'
2 help: 'The <info>generate:plugin:rulesaction</info> command helps you generate a new plugin rule action.'
3 welcome: 'Welcome to the Drupal Plugin Rules Action generator'
5 module: common.options.module
9 category: 'Plugin category'
10 context: 'Plugin context'
12 module: common.questions.module
13 class: 'Enter plugin class'
14 label: 'Enter the plugin label'
15 plugin-id: 'Enter the plugin id'
16 category: 'Enter plugin category'
17 context: 'Would you like to add a context?'
18 another-context: 'Would you like to add another context?'
19 context-name: 'Enter context name'
20 context-type: 'Enter context type (entity, entity:user_role, entity:user, language, any, string and etc.)'
21 context-label: 'Enter context label'
22 context-description: 'Enter context description'
24 - description: 'Generate a user rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
26 drupal generate:plugin:rules:action \
27 --module="modulename" \
28 --class="DefaultAction" \
29 --label="Default Action" \
30 --plugin-id="default_action" \
31 --category="Action category" \
32 --context='"name":"user", "type":"entity:user", "label":"Context label", "description":"Context description"'
33 - description: 'Generate a entity rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
35 drupal generate:plugin:rules:action \
36 --module="modulename" \
37 --class="DefaultAction" \
38 --label="Default Action" \
39 --plugin-id="default_action" \
40 --category="Action category" \
41 --context='"entity":"node", "type":"entity", "label":"Context label", "description":"Context description"'