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

Breadcrumb

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

function Crawler::__construct

Parameters

\DOMNodeList|\DOMNode|\DOMNode[]|string|null $node A Node to use as the base for the crawling:

File

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

Class

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

Namespace

Symfony\Component\DomCrawler

Code

public function __construct(\DOMNodeList|\DOMNode|array|string|null $node = null, ?string $uri = null, ?string $baseHref = null, bool $useHtml5Parser = true) {
    $this->baseHref = $baseHref ?: $uri;
    $this->html5Parser = $useHtml5Parser ? new HTML5([
        'disable_html_ns' => true,
    ]) : null;
    $this->cachedNamespaces = new \ArrayObject();
    $this->add($node);
}
RSS feed
Powered by Drupal