You are here

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

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides Numeric::render

File

lib/Views/comment/Plugin/views/field/NodeNewComments.php, line 114
Definition of Views\comment\Plugin\views\field\NodeNewComments.

Class

NodeNewComments
Field handler to display the number of new comments.

Namespace

Views\comment\Plugin\views\field

Code

function render($values) {
  $value = $this
    ->get_value($values);
  if (!empty($value)) {
    return $this
      ->render_link(parent::render($values), $values);
  }
  else {
    $this->options['alter']['make_link'] = FALSE;
  }
}