Files
lichterei-web/kirby/config/fields/info.php
Bastian Allgeier 01277f79f2 first version
2019-01-13 23:17:34 +01:00

24 lines
452 B
PHP
Executable File

<?php
use Kirby\Toolkit\I18n;
return [
'props' => [
'text' => function ($value = null) {
return I18n::translate($value, $value);
},
],
'computed' => [
'text' => function () {
$text = $this->text;
if ($model = $this->model()) {
$text = $this->model()->toString($text);
}
return kirbytext($text);
}
],
'save' => false,
];