public function FormFieldRegistry::has in Zircon Profile 8
Same name and namespace in other branches
- 8.0 vendor/symfony/dom-crawler/FormFieldRegistry.php \Symfony\Component\DomCrawler\FormFieldRegistry::has()
Tests whether the form has the given field.
Parameters
string $name The fully qualified name of the field:
Return value
bool Whether the form has the given field
File
- vendor/
symfony/ dom-crawler/ FormFieldRegistry.php, line 104
Class
- FormFieldRegistry
- This is an internal class that must not be used directly.
Namespace
Symfony\Component\DomCrawlerCode
public function has($name) {
try {
$this
->get($name);
return true;
} catch (\InvalidArgumentException $e) {
return false;
}
}