Skip to content

Kirby 5.0.4

$pagePicker->model()

Returns the parent model object 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.

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

Return types

Kirby\Cms\PageorKirby\Cms\Siteornull

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

Parent class

Kirby\Cms\PagePicker