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.
24 lines
571 B
24 lines
571 B
<?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'
|
|
]
|
|
]
|
|
];
|
|
|