julienmonnerie/kirby/config/api/models/Translation.php

25 lines
571 B
PHP
Raw Normal View History

2022-06-17 17:51:59 +02:00
<?php
use Kirby\Cms\Translation;
/**
* Translation
*/
return [
2022-08-31 15:02:43 +02:00
'fields' => [
'author' => fn (Translation $translation) => $translation->author(),
'data' => fn (Translation $translation) => $translation->dataWithFallback(),
'direction' => fn (Translation $translation) => $translation->direction(),
'id' => fn (Translation $translation) => $translation->id(),
'name' => fn (Translation $translation) => $translation->name(),
],
2025-04-21 18:57:21 +02:00
'type' => Translation::class,
2022-08-31 15:02:43 +02:00
'views' => [
'compact' => [
'direction',
'id',
'name'
]
]
2022-06-17 17:51:59 +02:00
];