function Link::render in Views (for Drupal 7) 8.3
Same name in this branch
- 8.3 lib/Views/node/Plugin/views/field/Link.php \Views\node\Plugin\views\field\Link::render()
- 8.3 lib/Views/user/Plugin/views/field/Link.php \Views\user\Plugin\views\field\Link::render()
- 8.3 lib/Views/comment/Plugin/views/field/Link.php \Views\comment\Plugin\views\field\Link::render()
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides FieldPluginBase::render
File
- lib/
Views/ user/ Plugin/ views/ field/ Link.php, line 60 - Definition of Views\user\Plugin\views\field\Link.
Class
- Link
- Field handler to present a link to the user.
Namespace
Views\user\Plugin\views\fieldCode
function render($values) {
$value = $this
->get_value($values, 'uid');
return $this
->render_link($this
->sanitizeValue($value), $values);
}