public function NodeViewCountId::query in Node view count 8
Called to add the field to a query.
Overrides FieldPluginBase::query
File
- src/
Plugin/ views/ field/ NodeViewCountId.php, line 20
Class
- NodeViewCountId
- NodeViewCountNodeId class.
Namespace
Drupal\nodeviewcount\Plugin\views\fieldCode
public function query() {
$this->query
->addField('nodeviewcount', 'id', 'id');
}