public on ( string | array $events, callback $callback, array $options = [] ) : void | ||
$events | string | array | Name of the Crud Event you want to attach to controller. |
$callback | callback | Callable method or closure to be executed on event. |
$options | array | Used to set the `priority` and `passParams` flags to the listener. |
return | void |