Skip to content

Kirby 3.6.6

page.changeTitle:before

/site/config/config.php
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