public function NodeNewComments::query in Zircon Profile 8
Same name and namespace in other branches
- 8.0 core/modules/comment/src/Plugin/views/field/NodeNewComments.php \Drupal\comment\Plugin\views\field\NodeNewComments::query()
Called to add the field to a query.
Overrides FieldPluginBase::query
File
- core/
modules/ comment/ src/ Plugin/ views/ field/ NodeNewComments.php, line 106 - Contains \Drupal\comment\Plugin\views\field\NodeNewComments.
Class
- NodeNewComments
- Field handler to display the number of new comments.
Namespace
Drupal\comment\Plugin\views\fieldCode
public function query() {
$this
->ensureMyTable();
$this
->addAdditionalFields();
$this->field_alias = $this->table . '_' . $this->field;
}