You are here

public function Node::render in Drupal 10

Same name and namespace in other branches
  1. 8 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::render()
  2. 9 core/modules/node/src/Plugin/views/field/Node.php \Drupal\node\Plugin\views\field\Node::render()
1 method overrides Node::render()
HistoryUserTimestamp::render in core/modules/history/src/Plugin/views/field/HistoryUserTimestamp.php

File

core/modules/node/src/Plugin/views/field/Node.php, line 95

Class

Node
Field handler to provide simple renderer that allows linking to a node. Definition terms:

Namespace

Drupal\node\Plugin\views\field

Code

public function render(ResultRow $values) {
  $value = $this
    ->getValue($values);
  return $this
    ->renderLink($this
    ->sanitizeValue($value), $values);
}