tick() Ticks a checkbox. Exceptions LogicException When the type provided is not correct
setValue(string $value) Sets the value of the field. Parameters string $value The value of the field Exceptions InvalidArgumentException When value type provided is not correct
select(string $value) Sets the value of the field. Parameters string $value The value of the field
bool isMultiple() Returns true if the field accepts multiple values. Return Value bool true if the field accepts multiple values, false otherwise
bool isDisabled() Check if the current selected option is disabled. Return Value bool
bool hasValue() Returns true if the field should be included in the submitted values. Return Value bool true if the field should be included in the submitted values, false otherwise
string getType() Returns the type of the choice field (radio, select, or checkbox). Return Value string The type
ChoiceFormField disableValidation() Disables the internal validation of the field. Return Value ChoiceFormField
bool containsOption(string $optionValue, array $options) Checks whether given value is in the existing options. Parameters string $optionValue array $options Return Value bool
array availableOptionValues() Returns list of available field options. Return Value array
Page 676 of 787