Skip to content

Kirby 5.0.4

$pagePicker->modelForQuery()

Returns a model object for the given query, depending on the parent and subpages options.

$pagePicker->modelForQuery(): 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