Update to Kirby 5
This commit is contained in:
parent
5d9979fca8
commit
0fefc5e2e1
472 changed files with 30853 additions and 10301 deletions
|
@ -10,11 +10,14 @@ return [
|
|||
* The field value will be converted with the selected converter before the value gets saved. Available converters: `lower`, `upper`, `ucfirst`, `slug`
|
||||
*/
|
||||
'converter' => function ($value = null) {
|
||||
if ($value !== null && array_key_exists($value, $this->converters()) === false) {
|
||||
throw new InvalidArgumentException([
|
||||
'key' => 'field.converter.invalid',
|
||||
'data' => ['converter' => $value]
|
||||
]);
|
||||
if (
|
||||
$value !== null &&
|
||||
array_key_exists($value, $this->converters()) === false
|
||||
) {
|
||||
throw new InvalidArgumentException(
|
||||
key: 'field.converter.invalid',
|
||||
data: ['converter' => $value]
|
||||
);
|
||||
}
|
||||
|
||||
return $value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue