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

Breadcrumb

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

function AbstractUriElement::setNode

Sets current \DOMElement instance.

Parameters

\DOMElement $node A \DOMElement instance:

Throws

\LogicException If given node is not an anchor

1 call to AbstractUriElement::setNode()
AbstractUriElement::__construct in vendor/symfony/dom-crawler/AbstractUriElement.php
2 methods override AbstractUriElement::setNode()
Image::setNode in vendor/symfony/dom-crawler/Image.php
Sets current \DOMElement instance.
Link::setNode in vendor/symfony/dom-crawler/Link.php
Sets current \DOMElement instance.

File

vendor/symfony/dom-crawler/AbstractUriElement.php, line 110

Class

AbstractUriElement
Any HTML element that can link to an URI.

Namespace

Symfony\Component\DomCrawler

Code

protected abstract function setNode(\DOMElement $node) : void;
RSS feed
Powered by Drupal