You are here

public function NodeCounter::query in Drupal 9

Same name and namespace in other branches
  1. 8 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::query()

Return value

\Drupal\Core\Database\Query\SelectInterface

Overrides SqlBase::query

File

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

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');
}