function TestDrupal6SqlBase::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_drupal/tests/src/Unit/source/d6/Drupal6SqlBaseTest.php, line 170

Class

TestDrupal6SqlBase
Extends the Drupal6SqlBase abstract class.

Namespace

Drupal\Tests\migrate_drupal\Unit\source\d6

Code

public function query() {
  $query = $this->database
    ->select('system', 's')
    ->fields('s', [
    'filename',
    'name',
    'schema_version',
  ]);
  return $query;
}

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