Skip to content

Kirby 3.5.7.1

$kirby->apply()

Applies a hook to the given value

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

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 Event object (internal use)

Return type

mixed

Parent class

Kirby\Cms\App