$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 | string ornull |
null
|
Return type
mixed
This method modifies the existing $events
object it is applied to and returns it again.