Skip to content

Kirby 6.0.0

$events->apply()

Runs the hook and applies the result to the argument specified by the $modify parameter. By default, the first argument is modified.

$events->apply(string $name, array $args = [], string|null $modify = null): mixed

Parameters

Name Type Default
$namerequired string no default value
$args array []
$modify stringornull null

Return type

mixed

Parent class

Kirby\Cms\Events