Called to add the field to a query.
Overrides FieldPluginBase::query
File
- drupal/core/modules/comment/lib/Drupal/comment/Plugin/views/field/NodeNewComments.php, line 54
- Definition of Drupal\comment\Plugin\views\field\NodeNewComments.
Class
- NodeNewComments
- Field handler to display the number of new comments.
Namespace
Drupal\comment\Plugin\views\field
Code
public function query() {
$this
->ensureMyTable();
$this
->addAdditionalFields();
$this->field_alias = $this->table . '_' . $this->field;
}