public function ChoiceFormField::hasValue in Zircon Profile 8.0
Same name and namespace in other branches
- 8 vendor/symfony/dom-crawler/Field/ChoiceFormField.php \Symfony\Component\DomCrawler\Field\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 45
Class
- ChoiceFormField
- ChoiceFormField represents a choice form field.
Namespace
Symfony\Component\DomCrawler\FieldCode
public function hasValue() {
// don't send a value for unchecked checkboxes
if (in_array($this->type, array(
'checkbox',
'radio',
)) && null === $this->value) {
return false;
}
return true;
}