You are here

protected function FilePlain::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/FilePlain.php, line 119

Class

FilePlain
File Plain 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_plain');
  $this->query
    ->addTag('migrate__media_migration__media_content');
  $this->query
    ->addTag("migrate__media_migration__source__{$this->pluginId}");
  return $this->query;
}