function TestSqlPrepareQuery::prepareQuery

Adds tags and metadata to the query.

Return value

\Drupal\Core\Database\Query\SelectInterface The query with additional tags and metadata.

Overrides SqlBase::prepareQuery

File

core/modules/migrate/tests/modules/migrate_sql_prepare_query_test/src/Plugin/migrate/source/TestSqlPrepareQuery.php, line 26

Class

TestSqlPrepareQuery
Source plugin for prepare query test.

Namespace

Drupal\migrate_sql_prepare_query_test\Plugin\migrate\source

Code

protected function prepareQuery() {
  $this->query = parent::prepareQuery();
  $this->query
    ->condition('name', 'foo', '!=');
  return $this->query;
}

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