Skip to content

Kirby 4.2.0

$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\Page|Kirby\Cms\Site|null null

Return type

array|null

Parent class

Kirby\Cms\PagePicker