page.changeTitle:before
return [
'hooks' => [
'page.changeTitle:before' => function (Kirby\Cms\Page $page, string $title, ?string $languageCode = null) {
// your code goes here
}
]
]
Parameters
Parameter | Type |
---|---|
$page | Kirby\Cms\Page |
$title | string |
$languageCode | string |null |