function TestSqlPrepareQuery::query
Same name and namespace in other branches
- 11.x core/modules/migrate/tests/modules/migrate_sql_prepare_query_test/src/Plugin/migrate/source/TestSqlPrepareQuery.php \Drupal\migrate_sql_prepare_query_test\Plugin\migrate\source\TestSqlPrepareQuery::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_prepare_query_test/ src/ Plugin/ migrate/ source/ TestSqlPrepareQuery.php, line 19
Class
- TestSqlPrepareQuery
- Source plugin for prepare query test.
Namespace
Drupal\migrate_sql_prepare_query_test\Plugin\migrate\sourceCode
public function query() {
return $this->select('migrate_source_test')
->fields('migrate_source_test');
}
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.