Files
lichterei-web/kirby/config/fields/mixins/pagepicker.php
2022-06-04 17:01:14 +02:00

15 lines
282 B
PHP

<?php
use Kirby\Cms\PagePicker;
return [
'methods' => [
'pagepicker' => function (array $params = []) {
// inject the current model
$params['model'] = $this->model();
return (new PagePicker($params))->toArray();
}
]
];