Symfony\Component\Form\Extension\Core\DataTransformer\ChoiceToBooleanArrayTransformer::reverseTransform
Transforms a checkbox/radio button array to a single choice.
The input value is an array with the choices as keys and true/false as values, depending on whether a given choice is selected. The output is the selected choice.
Signature
public function reverseTransform(array
$values )
Parameters
$values
— array- An array of values
Returns
- mixed
- A scalar value
Errors/Exceptions
-
TransformationFailedException
- If the given value is not an array,