You are here

function AccesslogPath::render_link in Views (for Drupal 7) 8.3

1 call to AccesslogPath::render_link()
AccesslogPath::render in lib/Views/statistics/Plugin/views/field/AccesslogPath.php
Render the field.

File

lib/Views/statistics/Plugin/views/field/AccesslogPath.php, line 61
Definition of Views\statistics\Plugin\views\field\AccesslogPath.

Class

AccesslogPath
Field handler to provide simple renderer that turns a URL into a clickable link.

Namespace

Views\statistics\Plugin\views\field

Code

function render_link($data, $values) {
  if (!empty($this->options['display_as_link'])) {
    $this->options['alter']['make_link'] = TRUE;
    $this->options['alter']['path'] = $this
      ->get_value($values, 'path');
    $this->options['alter']['html'] = TRUE;
  }
  return $data;
}