You are here

function File::render in Views (for Drupal 7) 8.3

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides FieldPluginBase::render

2 methods override File::render()
FileMime::render in lib/Views/file/Plugin/views/field/FileMime.php
Render the field.
Uri::render in lib/Views/file/Plugin/views/field/Uri.php
Render the field.

File

lib/Views/file/Plugin/views/field/File.php, line 69
Definition of Views\file\Plugin\views\field\File.

Class

File
Field handler to provide simple renderer that allows linking to a file.

Namespace

Views\file\Plugin\views\field

Code

function render($values) {
  $value = $this
    ->get_value($values);
  return $this
    ->render_link($this
    ->sanitizeValue($value), $values);
}