$listeners
$listeners : array
The list of listeners.
Events
on( $event_name, callable $callback, integer $priority = EVENT_PRIORITY_NORMAL)
Registers an action to happen on an event. The action can be any sort of callable:
Events::on('create', 'myFunction'); // procedural function Events::on('create', ['myClass', 'myMethod']); // Class::method Events::on('create', [$myInstance, 'myMethod']); // Method on an existing instance Events::on('create', function() {}); // Closure
$event_name | ||
callable | $callback | |
integer | $priority |
Loading…