public function ChoiceFormField::untick in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/Field/ChoiceFormField.php \Symfony\Component\DomCrawler\Field\ChoiceFormField::untick()
Ticks a checkbox.
Throws
\LogicException When the type provided is not correct
File
- vendor/
symfony/ dom-crawler/ Field/ ChoiceFormField.php, line 100
Class
- ChoiceFormField
- ChoiceFormField represents a choice form field.
Namespace
Symfony\Component\DomCrawler\FieldCode
public function untick() {
if ('checkbox' !== $this->type) {
throw new \LogicException(sprintf('You cannot tick "%s" as it is not a checkbox (%s).', $this->name, $this->type));
}
$this
->setValue(false);
}