protected function SqlBase::prepareQuery in Drupal 10
Same name and namespace in other branches
- 8 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::prepareQuery()
- 9 core/modules/migrate/src/Plugin/migrate/source/SqlBase.php \Drupal\migrate\Plugin\migrate\source\SqlBase::prepareQuery()
Adds tags and metadata to the query.
Return value
\Drupal\Core\Database\Query\SelectInterface The query with additional tags and metadata.
9 calls to SqlBase::prepareQuery()
- EntityTranslationSettings::initializeIterator in core/
modules/ content_translation/ src/ Plugin/ migrate/ source/ d7/ EntityTranslationSettings.php - Initializes the iterator with the source data.
- FieldInstance::initializeIterator in core/
modules/ field/ src/ Plugin/ migrate/ source/ d7/ FieldInstance.php - Initializes the iterator with the source data.
- FieldInstancePerFormDisplay::initializeIterator in core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstancePerFormDisplay.php - Initializes the iterator with the source data.
- FieldInstancePerViewMode::initializeIterator in core/
modules/ field/ src/ Plugin/ migrate/ source/ d6/ FieldInstancePerViewMode.php - Initializes the iterator with the source data.
- SqlBase::initializeIterator in core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php - Initializes the iterator with the source data.
File
- core/
modules/ migrate/ src/ Plugin/ migrate/ source/ SqlBase.php, line 241
Class
- SqlBase
- Sources whose data may be fetched via a database connection.
Namespace
Drupal\migrate\Plugin\migrate\sourceCode
protected function prepareQuery() {
$this->query = clone $this
->query();
$this->query
->addTag('migrate');
$this->query
->addTag('migrate_' . $this->migration
->id());
$this->query
->addMetaData('migration', $this->migration);
return $this->query;
}