#164 fix comment update

This commit is contained in:
isUnknown 2025-09-23 08:20:17 +02:00
parent 13ac9eb6bb
commit 2e0f28a13f
48 changed files with 3732 additions and 428 deletions

View file

@ -1,6 +1,7 @@
<?php
use Kirby\Field\FieldOptions;
use Kirby\Toolkit\I18n;
return [
'extends' => 'radio',
@ -19,8 +20,8 @@ return [
/**
* Custom placeholder string for empty option.
*/
'placeholder' => function (string $placeholder = '—') {
return $placeholder;
'placeholder' => function (string|array $placeholder = '—') {
return I18n::translate($placeholder, $placeholder);
},
],
'methods' => [