Skip to content

Kirby 3.6.1

page.changeSlug:before

/site/config/config.php
return [
    'hooks' => [
        'page.changeSlug:before' => function (Kirby\Cms\Page $page, string $slug, string $languageCode) {
            // your code goes here
        }
    ]
]

Parameters

Parameter Type
$page Kirby\Cms\Page
$slug string
$languageCode string