You are here

protected function FileEntityItem::prepareQuery in Media Migration 8

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

src/Plugin/migrate/source/d7/FileEntityItem.php, line 112

Class

FileEntityItem
File Entity Item source plugin.

Namespace

Drupal\media_migration\Plugin\migrate\source\d7

Code

protected function prepareQuery() {
  parent::prepareQuery();
  $this->query
    ->addTag('migrate__media_migration');
  $this->query
    ->addTag('migrate__media_migration__file_entity');
  $this->query
    ->addTag('migrate__media_migration__media_content');
  $this->query
    ->addTag("migrate__media_migration__source__{$this->pluginId}");
  return $this->query;
}