Skip to content

Kirby 5.3.2

$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

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

Parent class

Kirby\Cms\Events