Symfony\Component\Form\Extension\Core\DataTransformer\ChoicesToBooleanArrayTransformer::reverseTransform
Transforms a checkbox/radio button array to an array of choices.
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 an array with the selected choices.
Signature
public function reverseTransform(mixed
$values )
Parameters
$values
— mixed- An array
Returns
- mixed
- An array
Errors/Exceptions
-
TransformationFailedException
- If the given value is not an array,