public function Fallback::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 FileDealerBase::alterMediaEntityMigrationDefinition
File
- src/
Plugin/ media_migration/ file/ Fallback.php, line 86
Class
- Fallback
- General plugin for any kind of file.
Namespace
Drupal\media_migration\Plugin\media_migration\fileCode
public function alterMediaEntityMigrationDefinition(array &$migration_definition, Connection $connection) : void {
parent::alterMediaEntityMigrationDefinition($migration_definition, $connection);
$source_field_name = $this
->getDestinationMediaSourceFieldName();
$migration_definition['process'][$source_field_name . '/display'] = 'display';
$migration_definition['process'][$source_field_name . '/description'] = 'description';
}