You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
79 lines
1016 B
79 lines
1016 B
2 months ago
|
<?php
|
||
|
|
||
|
/**
|
||
|
* Api Collection Definitions
|
||
|
*/
|
||
|
|
||
|
use Kirby\Cms\Files;
|
||
|
use Kirby\Cms\Languages;
|
||
|
use Kirby\Cms\Pages;
|
||
|
use Kirby\Cms\Roles;
|
||
|
use Kirby\Cms\Translations;
|
||
|
use Kirby\Cms\Users;
|
||
|
|
||
|
return [
|
||
|
|
||
|
/**
|
||
|
* Children
|
||
|
*/
|
||
|
'children' => [
|
||
|
'model' => 'page',
|
||
|
'type' => Pages::class,
|
||
|
'view' => 'compact'
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Files
|
||
|
*/
|
||
|
'files' => [
|
||
|
'model' => 'file',
|
||
|
'type' => Files::class,
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Languages
|
||
|
*/
|
||
|
'languages' => [
|
||
|
'model' => 'language',
|
||
|
'type' => Languages::class,
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Pages
|
||
|
*/
|
||
|
'pages' => [
|
||
|
'model' => 'page',
|
||
|
'type' => Pages::class,
|
||
|
'view' => 'compact'
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Roles
|
||
|
*/
|
||
|
'roles' => [
|
||
|
'model' => 'role',
|
||
|
'type' => Roles::class,
|
||
|
'view' => 'compact'
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Translations
|
||
|
*/
|
||
|
'translations' => [
|
||
|
'model' => 'translation',
|
||
|
'type' => Translations::class,
|
||
|
'view' => 'compact'
|
||
|
],
|
||
|
|
||
|
/**
|
||
|
* Users
|
||
|
*/
|
||
|
'users' => [
|
||
|
'default' => fn () => $this->users(),
|
||
|
'model' => 'user',
|
||
|
'type' => Users::class,
|
||
|
'view' => 'compact'
|
||
|
]
|
||
|
|
||
|
];
|