public function LastTimestamp::init in Drupal 10
Same name and namespace in other branches
- 8 core/modules/comment/src/Plugin/views/field/LastTimestamp.php \Drupal\comment\Plugin\views\field\LastTimestamp::init()
- 9 core/modules/comment/src/Plugin/views/field/LastTimestamp.php \Drupal\comment\Plugin\views\field\LastTimestamp::init()
File
- core/
modules/ comment/ src/ Plugin/ views/ field/ LastTimestamp.php, line 22
Class
- LastTimestamp
- Field handler to display the timestamp of a comment with the count of comments.
Namespace
Drupal\comment\Plugin\views\fieldCode
public function init(ViewExecutable $view, DisplayPluginBase $display, array &$options = NULL) {
parent::init($view, $display, $options);
$this->additional_fields['comment_count'] = 'comment_count';
}