class ChoiceView
Represents a choice in templates.
$label | |||
$value | |||
$data | |||
$attr | Additional attributes for the HTML tag. |
__construct(mixed $data, string $value, string $label, array $attr = array()) Creates a new choice view. |
Creates a new choice view.
mixed | $data | The original choice |
string | $value | The view representation of the choice |
string | $label | The label displayed to humans |
array | $attr | Additional attributes for the HTML tag |
© 2004–2017 Fabien Potencier
Licensed under the MIT License.
https://api.symfony.com/4.1/Symfony/Component/Form/ChoiceList/View/ChoiceView.html