Documenting how to keep option value BC - see #14377
This commit is contained in:
parent
1dbf67ed66
commit
deb9db8c37
|
@ -144,6 +144,11 @@ Form
|
|||
'Ignored' => Status::IGNORED,
|
||||
),
|
||||
'choices_as_values' => true,
|
||||
// important if you rely on your option value attribute (e.g. for JavaScript)
|
||||
// this will keep the same functionality as before
|
||||
'choice_value' => function ($choice) {
|
||||
return $choice;
|
||||
},
|
||||
));
|
||||
```
|
||||
|
||||
|
|
Reference in New Issue