Documenting how to keep option value BC - see #14377

This commit is contained in:
Ryan Weaver 2015-06-01 18:30:37 -04:00
parent 1dbf67ed66
commit deb9db8c37
1 changed files with 5 additions and 0 deletions

View File

@ -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;
},
));
```