Bristol SU Support Package
|
Public Member Functions | |
getFields () | |
Static Public Member Functions | |
static | getFieldMetaData () |
Interface TriggerableEvent
Definition at line 10 of file TriggerableEvent.php.
|
static |
Register metadata about the fields the event supplies.
For each field returned in getFields, pass in a label and a helptext. e.g. [ 'user_id' => [ 'label' => 'User ID', 'helptext' => 'The ID of the user who posted the comment.' ], ... ]
BristolSU\Support\Action\Contracts\TriggerableEvent::getFields | ( | ) |
Get the fields that the event registers.
If the event has parameters which should be used in the framework, return them here.
e.g. [ 'user_id' => 1, 'comment_id' => 4, 'post_id' => 3 ]
Referenced by BristolSU\Support\Action\ActionDispatcher\handle().