25 lines
571 B
25 lines
571 B
3 months ago
|
<?php
|
||
|
|
||
|
use Kirby\Cms\Translation;
|
||
|
|
||
|
/**
|
||
|
* Translation
|
||
|
*/
|
||
|
return [
|
||
|
'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(),
|
||
|
],
|
||
|
'type' => Translation::class,
|
||
|
'views' => [
|
||
|
'compact' => [
|
||
|
'direction',
|
||
|
'id',
|
||
|
'name'
|
||
|
]
|
||
|
]
|
||
|
];
|