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