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

Breadcrumb

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

function EntityLink::render

Same name in this branch
  1. 11.1.x core/modules/comment/src/Plugin/views/field/EntityLink.php \Drupal\comment\Plugin\views\field\EntityLink::render()

Overrides LinkBase::render

File

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

Class

EntityLink
Field handler to present a link to an entity.

Namespace

Drupal\views\Plugin\views\field

Code

public function render(ResultRow $row) {
    return $this->getEntity($row) ? parent::render($row) : [];
}

API Navigation

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