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 29
- 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, &$options) {
parent::init($view, $options);
$this->additional_fields['comment_count'] = 'comment_count';
}