$event->call()
Calls a hook with the event data and returns the hook's return value
$event->call(object $bind, Closure $hook): mixed
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
| $bind * | object |
– | Optional object to bind to the hook function |
| $hook * | Closure |
– |
Return type
mixed