class RadioListMapper implements DataMapperInterface
Maps choices to/from radio forms.
A {@link ChoiceListInterface} implementation is used to find the corresponding string values for the choices. The radio form whose "value" option corresponds to the selected value is marked as selected.
mapDataToForms($choice, $radios) Maps properties of some data to a list of forms. | ||
mapFormsToData($radios, $choice) Maps the data of a list of forms into the properties of some data. |
Maps properties of some data to a list of forms.
$choice | ||
$radios |
UnexpectedTypeException | if the type of the data parameter is not supported |
Maps the data of a list of forms into the properties of some data.
$radios | ||
$choice |
UnexpectedTypeException | if the type of the data parameter is not supported |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/Extension/Core/DataMapper/RadioListMapper.html