You are here

public function Crawler::addNodes in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/symfony/dom-crawler/Crawler.php \Symfony\Component\DomCrawler\Crawler::addNodes()

Adds an array of \DOMNode instances to the list of nodes.

Parameters

\DOMNode[] $nodes An array of \DOMNode instances:

1 call to Crawler::addNodes()
Crawler::add in vendor/symfony/dom-crawler/Crawler.php
Adds a node to the current list of nodes.

File

vendor/symfony/dom-crawler/Crawler.php, line 287

Class

Crawler
Crawler eases navigation of a list of \DOMElement objects.

Namespace

Symfony\Component\DomCrawler

Code

public function addNodes(array $nodes) {
  foreach ($nodes as $node) {
    $this
      ->add($node);
  }
}