generate:plugin:rulesaction

Génère un plugin d'action de rule

Usage:

drupal generate:plugin:rulesaction [options]
gpra

Available options

Option Details
--module Le nom du module.
--class Nom de la classe du plugin
--label Label du plugin
--plugin-id Id du plugin
--type Type d'action (user ou node)
--category Catégorie du plugin
--context Contexte du plugin

Examples

  • Generate a user rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context
    drupal generate:plugin:rulesaction  \
    --module="modulename"  \
    --class="DefaultAction"  \
    --label="Default action"  \
    --plugin-id="default_action"  \
    --type="user"  \
    --category="default_action"  \
    --context="default_action"
    
  • Generate a node rule action plugin specifying the module name, the class, its label, the plugin id, the type, the category and its context
    drupal generate:plugin:rulesaction  \
    --module="modulename"  \
    --class="DefaultAction"  \
    --label="Default action"  \
    --plugin-id="default_action"  \
    --type="node"  \
    --category="default_action" \
    --context="default_action"