Skip to content
This repository has been archived by the owner on Sep 12, 2019. It is now read-only.

Latest commit

 

History

History
43 lines (40 loc) · 1.15 KB

generate-plugin-rulesaction.md

File metadata and controls

43 lines (40 loc) · 1.15 KB

generate:plugin:rulesaction

Tạo một plugin rule action

Usage:

drupal generate:plugin:rulesaction [options]
gpra

Available options

Option Details
--module Tên module.
--class Tên lớp plugin
--label Nhãn plugin
--plugin-id Plugin id
--type Kiểu hành vi (user or node)
--category Danh mục plugin
--context Ngữ cảnh 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"