menu 8 Menu Overview $page->parentId() Returns the parent id, if a parent exists $page->parentId(): string|null Return type string|null Source code kirby/src/Cms/Page.php#L1044