Reference

Guide

$kirby->trigger()

Trigger a hook by name

$kirby->trigger(string $name, mixed $arguments = null): void

Parameters

Name Type Default Description
$name string
$arguments mixed null

Source code

kirby/src/Cms/App.php#L1320