index-main/kirby/config/fields/mixins/pagepicker.php

15 lines
237 B
PHP
Raw Permalink Normal View History

2025-10-03 07:46:23 +02:00
<?php
use Kirby\Cms\PagePicker;
return [
'methods' => [
'pagepicker' => function (array $params = []) {
// inject the current model
$params['model'] = $this->model();
return (new PagePicker($params))->toArray();
}
]
];