You are here

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

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

lib/Views/comment/Plugin/views/field/Username.php, line 66
Definition of Views\comment\Plugin\views\field\Username.

Class

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

Namespace

Views\comment\Plugin\views\field

Code

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