Skip to content

Kirby 6.0.0

$pagePickerDialogController->parent()

Resolves the parent model that is currently selected in the page picker. It normally starts at the site, but can also be any subpage. When a query is given and subpage navigation is deactivated, there will be no model available at all. Falls back to the root when the requested parent is missing or not accessible for the current user.

$pagePickerDialogController->parent() has been marked as unstable. It might be changed in a future Kirby major or minor release without being considered a breaking change. Use with caution.

$pagePickerDialogController->parent(): Page|Site|null

Return types

Kirby\Cms\PageorKirby\Cms\Siteornull

Exceptions

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

Parent class

Kirby\Panel\Controller\Dialog\PagePickerDialogController