Skip to content

Kirby 4.5.0

$event->call()

Calls a hook with the event data and returns the hook's return value

$event->call(?object $bind, Closure $hook): mixed|null

Parameters

Name Type Default Description
$bind * object|null Optional object to bind to the hook function
$hook * Closure

Return type

mixed|null

Parent class

Kirby\Cms\Event