generate:plugin:rulesaction
Generează un plugin care implementează o acţiune de rules
Usage:
drupal generate:plugin:rulesaction [options]
gpra
Available options
Option | Details |
---|---|
--module | Numele Modulului. |
--class | Numele clasei pluginului |
--label | Eticheta pluginului |
--plugin-id | ID-ul pluginului |
--type | Tip de acţiune (user sau node) |
--category | Categoria pluginului |
--context | Contextul pluginului |
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"