function LastTimestamp::render

Render the field.

Parameters

$values: The values retrieved from the database.

Overrides Date::render

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php, line 33
Definition of Drupal\comment\Plugin\views\field\LastTimestamp.

Class

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

Namespace

Drupal\comment\Plugin\views\field

Code

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