Symfony\Component\DomCrawler\Crawler::form
Returns a Form object for the first node in the list.
Signature
public function form([array
$values = null,
[string
$method = null]] )
Parameters
$values
— array- An array of values for the form fields
$method
— string- The method for the form
Returns
- Form
- A Form instance
Errors/Exceptions
-
InvalidArgumentException
- If the current node list is empty