Constructor
new ActionTrigger()
- Source:
Example
//Trigger before action 'myActionName' is run
{
"action": {
"action": "myActionName",
"hook": "before"
}
}
//Trigger after action 'myActionName' is run
{
"action": {
"action": "myActionName",
"hook": "after"
}
}
//Trigger after any of multiple actions are run
{
"action": {
"action": ["myActionName", "mySecondActionName", "myThirdActionName"],
"hook": "after"
}
}
//Shorthand, trigger after 'myActionName' is run
{
"action": "myActionName"
}
//Shorthand, trigger after 'myConcept.myActionName' is run
{
"action": "myConcept.myActionName"
}
//Super shorthand, triggers after myActionName
"myActionName"