Symfony\Component\DomCrawler\Crawler::link
Returns a Link object for the first node in the list.
Signature
public function link([string
$method = 'get'] )
Parameters
$method
— string- The method for the link (get by default)
Returns
- Link
- A Link instance
Errors/Exceptions
-
InvalidArgumentException
- If the current node list is empty