public function LastTimestamp::init

Overrides Drupal\views\Plugin\views\field\FieldPluginBase::init().

Overrides FieldPluginBase::init

File

drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/LastTimestamp.php, line 27
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

public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
  parent::init($view, $display, $options);
  $this->additional_fields['comment_count'] = 'comment_count';
}