Skip to content

Kirby 3.9.8

$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|null Optional object to bind to the hook function
$hook * Closure

Return type

mixed

Parent class

Kirby\Cms\Event