You are here

public function FileDealerBase::alterMediaEntityMigrationDefinition in Media Migration 8

Alters the definition of the media entity migration.

Parameters

mixed[] $migration_definition: The migration definition of the current derived media entity migration.

\Drupal\Core\Database\Connection $connection: The database connection of the source Drupal 7 instance.

Overrides MediaDealerBase::alterMediaEntityMigrationDefinition

2 calls to FileDealerBase::alterMediaEntityMigrationDefinition()
Fallback::alterMediaEntityMigrationDefinition in src/Plugin/media_migration/file/Fallback.php
Alters the definition of the media entity migration.
Image::alterMediaEntityMigrationDefinition in src/Plugin/media_migration/file/Image.php
Alters the definition of the media entity migration.
2 methods override FileDealerBase::alterMediaEntityMigrationDefinition()
Fallback::alterMediaEntityMigrationDefinition in src/Plugin/media_migration/file/Fallback.php
Alters the definition of the media entity migration.
Image::alterMediaEntityMigrationDefinition in src/Plugin/media_migration/file/Image.php
Alters the definition of the media entity migration.

File

src/FileDealerBase.php, line 15

Class

FileDealerBase
Base implementation of file dealer plugins.

Namespace

Drupal\media_migration

Code

public function alterMediaEntityMigrationDefinition(array &$migration_definition, Connection $connection) : void {
  $migration_definition['process'][$this
    ->getDestinationMediaSourceFieldName() . '/target_id'] = 'fid';
}