public function FileBase::alterMediaEntityMigrationDefinition in Media Migration 8
Overrides MediaDealerBase::alterMediaEntityMigrationDefinition
1 call to FileBase::alterMediaEntityMigrationDefinition()
- Image::alterMediaEntityMigrationDefinition in src/
Plugin/ media_migration/ file_entity/ Image.php
1 method overrides FileBase::alterMediaEntityMigrationDefinition()
- Image::alterMediaEntityMigrationDefinition in src/
Plugin/ media_migration/ file_entity/ Image.php
File
- src/
Plugin/ media_migration/ file_entity/ FileBase.php, line 23
Class
- FileBase
- Abstract plugin class for file-based media migration source plugins.
Namespace
Drupal\media_migration\Plugin\media_migration\file_entityCode
public function alterMediaEntityMigrationDefinition(array &$migration_definition, Connection $connection) : void {
$source_field_name = $this
->getDestinationMediaSourceFieldName();
$migration_definition['process'][$source_field_name . '/target_id'] = 'fid';
$migration_definition['process'][$source_field_name . '/display'] = 'display';
$migration_definition['process'][$source_field_name . '/description'] = 'description';
}