function NodeCounter::query

Same name in other branches
  1. 9 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::query()
  2. 8.9.x core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::query()
  3. 11.x core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::query()

Overrides SqlBase::query

File

core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php, line 27

Class

NodeCounter
Drupal 6/7 node counter source from database.

Namespace

Drupal\statistics\Plugin\migrate\source

Code

public function query() {
    return $this->select('node_counter', 'nc')
        ->fields('nc');
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.