$page->parentId() Returns the parent id, if a parent exists kirby/src/Cms/Page.php#L934 $page->parentId(): string|null Return type string|null Parent class Kirby\Cms\Page