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

Breadcrumb

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

class Link

Same name in this branch
  1. 11.1.x vendor/open-telemetry/sdk/Trace/Link.php \OpenTelemetry\SDK\Trace\Link
  2. 11.1.x vendor/open-telemetry/gen-otlp-protobuf/Opentelemetry/Proto/Trace/V1/Span/Link.php \Opentelemetry\Proto\Trace\V1\Span\Link
  3. 11.1.x vendor/composer/composer/src/Composer/Package/Link.php \Composer\Package\Link
  4. 11.1.x vendor/phpdocumentor/reflection-docblock/src/DocBlock/Tags/Link.php \phpDocumentor\Reflection\DocBlock\Tags\Link
  5. 11.1.x core/lib/Drupal/Core/Link.php \Drupal\Core\Link
  6. 11.1.x core/lib/Drupal/Core/Render/Element/Link.php \Drupal\Core\Render\Element\Link
  7. 11.1.x core/modules/jsonapi/src/JsonApiResource/Link.php \Drupal\jsonapi\JsonApiResource\Link

Link represents an HTML link (an HTML a, area or link tag).

@author Fabien Potencier <fabien@symfony.com>

Hierarchy

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

Expanded class hierarchy of Link

1 file declares its use of Link
AbstractBrowser.php in vendor/symfony/browser-kit/AbstractBrowser.php
61 string references to 'Link'
ckeditor5.ckeditor5.yml in core/modules/ckeditor5/ckeditor5.ckeditor5.yml
core/modules/ckeditor5/ckeditor5.ckeditor5.yml
claro_form_alter in core/themes/claro/claro.theme
Implements hook_form_alter().
claro_page_attachments_alter in core/themes/claro/claro.theme
Implements hook_page_attachments_alter().
ContentTranslationHandler::entityFormSharedElements in core/modules/content_translation/src/ContentTranslationHandler.php
Process callback: determines which elements get clue in the form.
contextual.views.schema.yml in core/modules/contextual/config/schema/contextual.views.schema.yml
core/modules/contextual/config/schema/contextual.views.schema.yml

... See full list

File

vendor/symfony/dom-crawler/Link.php, line 19

Namespace

Symfony\Component\DomCrawler
View source
class Link extends AbstractUriElement {
    protected function getRawUri() : string {
        return $this->node
            ->getAttribute('href');
    }
    protected function setNode(\DOMElement $node) : void {
        if ('a' !== $node->nodeName && 'area' !== $node->nodeName && 'link' !== $node->nodeName) {
            throw new \LogicException(\sprintf('Unable to navigate from 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
AbstractUriElement::__construct public function 2
Link::getRawUri protected function Returns raw URI data. Overrides AbstractUriElement::getRawUri 1
Link::setNode protected function Sets current \DOMElement instance. Overrides AbstractUriElement::setNode 1

API Navigation

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