$event->call()
Calls a hook with the event data and returns the hook's return value
$event->call(object|null $bind, Closure $hook): mixed
Parameters
Name | Type | Default | Description |
---|---|---|---|
$bind | object ornull |
no default value | Optional object to bind to the hook function |
$hookrequired | Closure |
no default value |
Return type
mixed
This method modifies the existing $event
object it is applied to and returns it again.