function Form::__construct
Parameters
\DOMElement $node A \DOMElement instance:
string|null $currentUri The URI of the page where the form is embedded:
string|null $method The method to use for the link (if null, it defaults to the method defined by the form):
string|null $baseHref The URI of the <base> used for relative links, but not for empty action:
Throws
\LogicException if the node is not a button inside a form tag
Overrides AbstractUriElement::__construct
File
-
vendor/
symfony/ dom-crawler/ Form.php, line 35
Class
- Form
- Form represents an HTML form.
Namespace
Symfony\Component\DomCrawlerCode
public function __construct(\DOMElement $node, ?string $currentUri = null, ?string $method = null, ?string $baseHref = null) {
parent::__construct($node, $currentUri, $method);
$this->initialize();
}