function Path::render

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

File

drupal/core/modules/node/lib/Drupal/node/Plugin/views/field/Path.php, line 58
Definition of Drupal\node\Plugin\views\field\Path.

Class

Path
Field handler to present the path to the node.

Namespace

Drupal\node\Plugin\views\field

Code

function render($values) {
  $nid = $this
    ->get_value($values, 'nid');
  return url("node/{$nid}", array(
    'absolute' => $this->options['absolute'],
  ));
}