$page->parentModel() Returns the parent model, which can either be another Page or the Site kirby/src/Cms/Page.php#L862 $page->parentModel(): Page|Site Return types Kirby\Cms\Page|orKirby\Cms\Site Parent class Kirby\Cms\Page