Skip to content

Kirby 4.5.0

$kirby->apply()

Applies a hook to the given value

$kirby->apply(string $name, array $args, string $modify, ?Kirby\Cms\Event $originalEvent = null): mixed|null

Parameters

Name Type Default Description
$name * string Full event name
$args * array Associative array of named event arguments
$modify * string Key in $args that is modified by the hooks
$originalEvent Kirby\Cms\Event|null null Event object (internal use)

Return type

mixed|null

Parent class

Kirby\Cms\App