Security update for Core, with self-updated composer
[yaffs-website] / vendor / drupal / console-en / translations / generate.plugin.rulesaction.yml
index 3da18b63e7a38df7efe10e1f01f2594924d185b4..c39d7f21b2cfebb425584b05fcc65a842246c9b0 100644 (file)
@@ -2,21 +2,38 @@ description: 'Generate a plugin rule action'
 help: 'The <info>generate:plugin:rulesaction</info> command helps you generate a new Plugin rule action.'
 welcome: 'Welcome to the Drupal Plugin Rules Action generator'
 options:
-    module: common.options.module
-    class: 'Plugin class name'
-    label: 'Plugin label'
-    plugin-id: 'Plugin id'
-    inputs: common.options.inputs
-    services: common.options.services
-    category: 'Plugin category'
-    context: 'Plugin context'
-    type: 'Action Type (user or node)'
+  module: 'The Module name.'
+  class: 'Plugin class name'
+  label: 'Plugin label'
+  plugin-id: 'Plugin id'
+  category: 'Plugin category'
+  context: 'Plugin context'
+  type: 'Action Type (user or node)'
 questions:
-    module: common.questions.module
-    class: 'Enter the plugin class name'
-    label: 'Enter the plugin label'
-    plugin-id: 'Enter the plugin id'
-    inputs: common.questions.inputs
-    services: common.questions.services
-    category: 'Enter plugin category'
-    context: 'Enter plugin context'
+  module: 'Enter the module name'
+  class: 'Enter the plugin class name'
+  label: 'Enter the plugin label'
+  plugin-id: 'Enter the plugin id'
+  category: 'Enter plugin category'
+  context: 'Enter plugin context'
+examples:
+  - 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'
+    execution: |
+      drupal generate:plugin:rulesaction  \
+        --module="modulename"  \
+        --class="DefaultAction"  \
+        --label="Default action"  \
+        --plugin-id="default_action"  \
+        --type="user"  \
+        --category="default_action"  \
+        --context="default_action"
+  - description: 'Generate a node rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context'
+    execution: |
+      drupal generate:plugin:rulesaction  \
+        --module="modulename"  \
+        --class="DefaultAction"  \
+        --label="Default action"  \
+        --plugin-id="default_action"  \
+        --type="node"  \
+        --category="default_action" \
+        --context="default_action"