Skip to content

Kirby 3.9.8

page.render:before

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

Parameters

Parameter Type
$contentType string
$data array
$page Kirby\Cms\Page