You are here

public function NodeNewComments::query in Views (for Drupal 7) 8.3

Called to add the field to a query.

Overrides FieldPluginBase::query

File

lib/Views/comment/Plugin/views/field/NodeNewComments.php, line 56
Definition of Views\comment\Plugin\views\field\NodeNewComments.

Class

NodeNewComments
Field handler to display the number of new comments.

Namespace

Views\comment\Plugin\views\field

Code

public function query() {
  $this
    ->ensureMyTable();
  $this
    ->add_additional_fields();
  $this->field_alias = $this->table . '_' . $this->field;
}