Symfony\Component\DomCrawler\Crawler::filterRelativeXPath PHP Метод

filterRelativeXPath() приватный Метод

The XPath expression should already be processed to apply it in the context of each node.
private filterRelativeXPath ( string $xpath ) : Crawler
$xpath string
Результат Crawler
    private function filterRelativeXPath($xpath)
    {
        $prefixes = $this->findNamespacePrefixes($xpath);
        $crawler = $this->createSubCrawler(null);
        foreach ($this->nodes as $node) {
            $domxpath = $this->createDOMXPath($node->ownerDocument, $prefixes);
            $crawler->add($domxpath->query($xpath, $node));
        }
        return $crawler;
    }