class Image
Same name in this branch
- 11.1.x vendor/symfony/validator/Constraints/Image.php \Symfony\Component\Validator\Constraints\Image
- 11.1.x core/lib/Drupal/Core/Image/Image.php \Drupal\Core\Image\Image
- 11.1.x core/lib/Drupal/Component/Utility/Image.php \Drupal\Component\Utility\Image
- 11.1.x core/modules/media/src/Plugin/media/Source/Image.php \Drupal\media\Plugin\media\Source\Image
- 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.
File
-
vendor/
symfony/ dom-crawler/ Image.php, line 17
Namespace
Symfony\Component\DomCrawlerView 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 |