public function NodeCounter::query in Drupal 10
Same name and namespace in other branches
- 8 core/modules/statistics/src/Plugin/migrate/source/NodeCounter.php \Drupal\statistics\Plugin\migrate\source\NodeCounter::query()
- 9 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\sourceCode
public function query() {
return $this
->select('node_counter', 'nc')
->fields('nc');
}