Skip to content

Kirby 3.6.6

page.changeTemplate:before

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

Parameters

Parameter Type
$page Kirby\Cms\Page
$template string