You are here

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\field

Code

public function query() {
  $this->query
    ->addField('nodeviewcount', 'id', 'id');
}