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

Breadcrumb

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

function Image::setNode

Overrides AbstractUriElement::setNode

File

vendor/symfony/dom-crawler/Image.php, line 29

Class

Image
Image represents an HTML image (an HTML img tag).

Namespace

Symfony\Component\DomCrawler

Code

protected function setNode(\DOMElement $node) : void {
    if ('img' !== $node->nodeName) {
        throw new \LogicException(\sprintf('Unable to visualize a "%s" tag.', $node->nodeName));
    }
    $this->node = $node;
}

API Navigation

  • Drupal Core 11.1.x
  • Topics
  • Classes
  • Functions
  • Constants
  • Globals
  • Files
  • Namespaces
  • Deprecated
  • Services
RSS feed
Powered by Drupal