function Uri::render in Views (for Drupal 7) 8.3
Render the field.
Parameters
$values: The values retrieved from the database.
Overrides File::render
File
- lib/
Views/ file/ Plugin/ views/ field/ Uri.php, line 38 - Definition of Views\file\Plugin\views\field\Uri.
Class
- Uri
- Field handler to add rendering file paths as file URLs instead of as internal file URIs.
Namespace
Views\file\Plugin\views\fieldCode
function render($values) {
$data = $values->{$this->field_alias};
if (!empty($this->options['file_download_path']) && $data !== NULL && $data !== '') {
$data = file_create_url($data);
}
return $this
->render_link($data, $values);
}