function Username::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/Username.php, line 67
Definition of Drupal\comment\Plugin\views\field\Username.

Class

Username
Field handler to allow linking to a user account or homepage.

Namespace

Drupal\comment\Plugin\views\field

Code

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