Skip to content

Commit 62187ba

Browse files
LOBsTerrjmolivas
authored andcommitted
Fix module missing dependencies (#190)
* Replace wrong help text for debug.test.yml * generate:plugin:rules:action Add new string for context. Update exmaples. Rename the file according to the new name of the command * Update the message for missing modules. Make it more generic
1 parent aca52a6 commit 62187ba

File tree

3 files changed

+42
-40
lines changed

3 files changed

+42
-40
lines changed

translations/generate.module.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ questions:
3131
suggestions:
3232
my-awesome-module: 'My Awesome Module'
3333
warnings:
34-
module-unavailable: 'Warning The following modules are not available in your local environment "%s"'
34+
module-unavailable: 'Warning The following modules are not available "%s"'
3535
errors:
3636
invalid-core: 'The core version "%s" is invalid.'
3737
directory-exists: 'The target directory "%s" is not empty.'
Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
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'
4+
options:
5+
module: common.options.module
6+
class: 'Plugin class'
7+
label: 'Plugin label'
8+
plugin-id: 'Plugin id'
9+
category: 'Plugin category'
10+
context: 'Plugin context'
11+
questions:
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'
23+
examples:
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'
25+
execution: |
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'
34+
execution: |
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"'

translations/generate.plugin.rulesaction.yml

Lines changed: 0 additions & 39 deletions
This file was deleted.

0 commit comments

Comments
 (0)