Skip to content

Kirby 5.0.4

$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, string|null $modify = null): mixed

Parameters

Name Type Default
$namerequired string no default value
$modify stringornull null

Return type

mixed

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

Parent class

Kirby\Cms\Events