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

Breadcrumb

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

function LinkBase::getUrlInfo

Returns the URI elements of the link.

Parameters

\Drupal\views\ResultRow $row: A view result row.

Return value

\Drupal\Core\Url|null The URI elements of the link.

2 calls to LinkBase::getUrlInfo()
LinkBase::checkUrlAccess in core/modules/views/src/Plugin/views/field/LinkBase.php
Checks access to the link route.
LinkBase::renderLink in core/modules/views/src/Plugin/views/field/LinkBase.php
Prepares the link to view an entity.
5 methods override LinkBase::getUrlInfo()
ContactLink::getUrlInfo in core/modules/contact/src/Plugin/views/field/ContactLink.php
Returns the URI elements of the link.
EntityLink::getUrlInfo in core/modules/views/src/Plugin/views/field/EntityLink.php
Returns the URI elements of the link.
LinkApprove::getUrlInfo in core/modules/comment/src/Plugin/views/field/LinkApprove.php
Returns the URI elements of the link.
LinkReply::getUrlInfo in core/modules/comment/src/Plugin/views/field/LinkReply.php
Returns the URI elements of the link.
RevisionLink::getUrlInfo in core/modules/node/src/Plugin/views/field/RevisionLink.php
Returns the URI elements of the link.

File

core/modules/views/src/Plugin/views/field/LinkBase.php, line 199

Class

LinkBase
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected abstract function getUrlInfo(ResultRow $row);

API Navigation

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