function Path::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/ node/ Plugin/ views/ field/ Path.php, line 58 - Definition of Views\node\Plugin\views\field\Path.
Class
- Path
- Field handler to present the path to the node.
Namespace
Views\node\Plugin\views\fieldCode
function render($values) {
$nid = $this
->get_value($values, 'nid');
return url("node/{$nid}", array(
'absolute' => $this->options['absolute'],
));
}