$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\Page
orKirby\Cms\Site
ornull
This method modifies the existing $pagepicker
object it is applied to and returns it again.