$pagePicker->modelToArray()
Returns basic information about the parent model that is currently selected in the page picker.
$pagePicker->modelToArray(Kirby\Cms\Page|Kirby\Cms\Site|null $model = null): array|null
Parameters
| Name | Type | Default |
|---|---|---|
| $model | Kirby\Cms\PageorKirby\Cms\Siteornull |
null
|
Return types
arrayornull
This method modifies the existing $pagepicker object it is applied to and returns it again.