ChoiceListInterface deprecated
ChoiceListInterface deprecated
interface ChoiceListInterface
deprecated
since version 2.7, to be removed in 3.0. Use {@link \Symfony\Component\Form\ChoiceList\ChoiceListInterface} instead.Contains choices that can be selected in a form field.
Each choice has three different properties:
- Choice: The choice that should be returned to the application by the choice field. Can be any scalar value or an object, but no array.
- Label: A text representing the choice that is displayed to the user.
- Value: A uniquely identifying value that can contain arbitrary characters, but no arrays or objects. This value is displayed in the HTML "value" attribute.
Methods
array 登录查看完整内容
|