Skip to content

Kirby 4.1.2

$page->isHomeOrErrorPage()

It's often required to check for the home and error page to stop certain actions. That's why there's a shortcut.

$page->isHomeOrErrorPage(): bool

Return type

bool

Parent class

Kirby\Cms\Page