Skip to content

Kirby 4.1.2

$site->errorPage()

Returns the error page object

$site->errorPage(): Kirby\Cms\Page|null

Return type

Kirby\Cms\Page|null

Parent class

Kirby\Cms\Site

Example

<?= $site->errorPage()->text() ?>