function Comment::render

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/Comment.php, line 82
Definition of Drupal\comment\Plugin\views\field\Comment.

Class

Comment
Field handler to allow linking to a comment.

Namespace

Drupal\comment\Plugin\views\field

Code

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