You are here

function Link::render in Views (for Drupal 7) 8.3

Same name in this branch
  1. 8.3 lib/Views/node/Plugin/views/field/Link.php \Views\node\Plugin\views\field\Link::render()
  2. 8.3 lib/Views/user/Plugin/views/field/Link.php \Views\user\Plugin\views\field\Link::render()
  3. 8.3 lib/Views/comment/Plugin/views/field/Link.php \Views\comment\Plugin\views\field\Link::render()

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

lib/Views/node/Plugin/views/field/Link.php, line 46
Definition of Views\node\Plugin\views\field\Link.

Class

Link
Field handler to present a link to the node.

Namespace

Views\node\Plugin\views\field

Code

function render($values) {
  if ($entity = $this
    ->get_entity($values)) {
    return $this
      ->render_link($entity, $values);
  }
}