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

Breadcrumb

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

class Image

Same name in this branch
  1. 11.1.x vendor/symfony/validator/Constraints/Image.php \Symfony\Component\Validator\Constraints\Image
  2. 11.1.x core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image
  3. 11.1.x core/lib/Drupal/Component/Utility/Image.php \Drupal\Component\Utility\Image
  4. 11.1.x core/modules/media/src/Plugin/media/Source/Image.php \Drupal\media\Plugin\media\Source\Image
  5. 11.1.x core/modules/ckeditor5/src/Plugin/CKEditor5Plugin/Image.php \Drupal\ckeditor5\Plugin\CKEditor5Plugin\Image

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

Hierarchy

  • class \Symfony\Component\DomCrawler\AbstractUriElement
    • class \Symfony\Component\DomCrawler\Image extends \Symfony\Component\DomCrawler\AbstractUriElement

Expanded class hierarchy of Image

129 string references to 'Image'
banner.component.yml in core/profiles/demo_umami/themes/umami/components/banner/banner.component.yml
core/profiles/demo_umami/themes/umami/components/banner/banner.component.yml
BrowserKitDriver::canSubmitForm in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
BrowserKitDriver::getFormField in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Returns form field from XPath query.
BrowserKitDriver::getValue in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Returns element's value by its XPath query.
BrowserKitDriver::mergeForms in vendor/behat/mink-browserkit-driver/src/BrowserKitDriver.php
Merges second form values into first one.

... See full list

File

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

Namespace

Symfony\Component\DomCrawler
View source
class Image extends AbstractUriElement {
    public function __construct(\DOMElement $node, ?string $currentUri = null) {
        parent::__construct($node, $currentUri, 'GET');
    }
    protected function getRawUri() : string {
        return $this->node
            ->getAttribute('src');
    }
    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;
    }

}

Members

Title Sort descending Modifiers Object type Summary Overriden Title Overrides
AbstractUriElement::$method protected property
AbstractUriElement::$node protected property
AbstractUriElement::canonicalizePath protected function Returns the canonicalized URI path (see RFC 3986, section 5.2.4).
AbstractUriElement::getMethod public function Gets the method associated with this link. 1
AbstractUriElement::getNode public function Gets the node associated with this link.
AbstractUriElement::getUri public function Gets the URI associated with this link. 1
Image::getRawUri protected function Returns raw URI data. Overrides AbstractUriElement::getRawUri
Image::setNode protected function Sets current \DOMElement instance. Overrides AbstractUriElement::setNode
Image::__construct public function Overrides AbstractUriElement::__construct
RSS feed
Powered by Drupal