Skip to content

Kirby 5.4.4

$pagePicker->parent()

Returns the parent model. The model will be used to fetch subpages unless there's a specific query to find pages instead. Falls back to the site root when the requested parent is missing or not accessible for the current user.

$pagePicker->parent(): Kirby\Cms\Page|Kirby\Cms\Site

Return types

Kirby\Cms\PageorKirby\Cms\Site

This method modifies the existing $pagepicker object it is applied to and returns it again.

Exceptions

Type Description
Kirby\Exception\PermissionException if neither the requested parent
nor the site are accessible

Parent class

Kirby\Cms\PagePicker