You are here

public function LastTimestamp::init in Views (for Drupal 7) 8.3

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

Overrides FieldPluginBase::init

File

lib/Views/comment/Plugin/views/field/LastTimestamp.php, line 29
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

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