Skip to content

Kirby 5.0.4

$kirby->apply()

Applies a hook to the given value

$kirby->apply(string $name, string|null $modify = null): mixed

Parameters

Name Type Default Description
$namerequired string no default value Full event name
$modify stringornull null Key in $args that is modified by the hooks (default: first argument)

Return type

mixed

Resulting value as modified by the hooks

This method modifies the existing $app object it is applied to and returns it again.

Parent class

Kirby\Cms\App