Skip to content

Kirby 5.0.1

$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 objectornull no default value Optional object to bind to the hook function
$hookrequired Closure no default value

Return type

mixed

Parent class

Kirby\Cms\Event