function SqlCountCache::query

Same name and namespace in other branches
  1. 9 core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php \Drupal\migrate_sql_count_cache_test\Plugin\migrate\source\SqlCountCache::query()
  2. 10 core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php \Drupal\migrate_sql_count_cache_test\Plugin\migrate\source\SqlCountCache::query()

Prepares query object to retrieve data from the source database.

This method should not be called directly. It is called automatically from SqlBase::prepareQuery().

Return value

\Drupal\Core\Database\Query\SelectInterface A Select query object with the source data.

Overrides SqlBase::query

File

core/modules/migrate/tests/modules/migrate_sql_count_cache_test/src/Plugin/migrate/source/SqlCountCache.php, line 39

Class

SqlCountCache
Source plugin for Sql count cache test.

Namespace

Drupal\migrate_sql_count_cache_test\Plugin\migrate\source

Code

public function query() {
  return $this->select('source_table', 's')
    ->fields('s', [
    'id',
  ]);
}

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