public function NodeNewComments::query

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 56
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
    ->add_additional_fields();
  $this->field_alias = $this->table . '_' . $this->field;
}