You are here

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

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides Date::render

File

lib/Views/comment/Plugin/views/field/LastTimestamp.php, line 35
Definition of Views\comment\Plugin\views\field\LastTimestamp.

Class

LastTimestamp
Field handler to display the timestamp of a comment with the count of comments.

Namespace

Views\comment\Plugin\views\field

Code

function render($values) {
  $comment_count = $this
    ->get_value($values, 'comment_count');
  if (empty($this->options['empty_zero']) || $comment_count) {
    return parent::render($values);
  }
  else {
    return NULL;
  }
}