You are here

function NodeTranslationLink::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/translation/Plugin/views/field/NodeTranslationLink.php, line 43
Definition of Views\translation\Plugin\views\field\NodeTranslationLink.

Class

NodeTranslationLink
Field handler to present a link to the node.

Namespace

Views\translation\Plugin\views\field

Code

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