Skip to main content
Drupal API
User account menu
  • Log in

Breadcrumb

  1. Drupal Core 11.1.x
  2. Crawler.php

function Crawler::addDocument

Adds a \DOMDocument to the list of nodes.

Parameters

\DOMDocument $dom A \DOMDocument instance:

2 calls to Crawler::addDocument()
Crawler::addHtmlContent in vendor/symfony/dom-crawler/Crawler.php
Adds an HTML content to the list of nodes.
Crawler::addXmlContent in vendor/symfony/dom-crawler/Crawler.php
Adds an XML content to the list of nodes.

File

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

Class

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

Namespace

Symfony\Component\DomCrawler

Code

public function addDocument(\DOMDocument $dom) : void {
    if ($dom->documentElement) {
        $this->addNode($dom->documentElement);
    }
}
RSS feed
Powered by Drupal