function ChoiceFormField::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
Overrides FormField::hasValue
File
-
vendor/
symfony/ dom-crawler/ Field/ ChoiceFormField.php, line 33
Class
- ChoiceFormField
- ChoiceFormField represents a choice form field.
Namespace
Symfony\Component\DomCrawler\FieldCode
public function hasValue() : bool {
// don't send a value for unchecked checkboxes
if (\in_array($this->type, [
'checkbox',
'radio',
]) && null === $this->value) {
return false;
}
return true;
}