Skip to content

Kirby 3.8.4

$kirby->trigger()

Trigger a hook by name

$kirby->trigger(string $name, array $args = [ ], Kirby\Cms\Event $originalEvent = null): void

Parameters

Name Type Default Description
$name * string Full event name
$args array [ ] Associative array of named event arguments
$originalEvent Kirby\Cms\Event null Event object (internal use)

Parent class

Kirby\Cms\App