function views_handler_field_file_uri::render

Overrides views_handler_field_file::render

File

modules/system/views_handler_field_file_uri.inc, line 39

Class

views_handler_field_file_uri
Field handler to add rendering file paths as file URLs instead of as internal file URIs.

Code

public 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);
}