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

Breadcrumb

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

function EntityLink::renderLink

Overrides LinkBase::renderLink

4 calls to EntityLink::renderLink()
EntityLinkDelete::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkDelete.php
Prepares the link to view an entity.
EntityLinkDelete::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkDelete.php
Prepares the link to view an entity.
EntityLinkEdit::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkEdit.php
Prepares the link to view an entity.
EntityLinkEdit::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkEdit.php
Prepares the link to view an entity.
2 methods override EntityLink::renderLink()
EntityLinkDelete::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkDelete.php
Prepares the link to view an entity.
EntityLinkEdit::renderLink in core/modules/views/src/Plugin/views/field/EntityLinkEdit.php
Prepares the link to view an entity.

File

core/modules/views/src/Plugin/views/field/EntityLink.php, line 27

Class

EntityLink
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

protected function renderLink(ResultRow $row) {
    if ($this->options['output_url_as_text']) {
        $url_info = $this->getUrlInfo($row);
        return $url_info ? $url_info->toString() : '';
    }
    return parent::renderLink($row);
}

API Navigation

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