public function MediaImage::alterFieldMigration in Media Migration 8
Apply any custom processing to the field migration.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
Overrides FieldPluginBase::alterFieldMigration
File
- src/
Plugin/ migrate/ field/ MediaImage.php, line 25
Class
- MediaImage
- Field Plugin for image field to media image field migrations.
Namespace
Drupal\media_migration\Plugin\migrate\fieldCode
public function alterFieldMigration(MigrationInterface $migration) {
$settings = [
'media_image' => [
'plugin' => 'media_image_field_settings',
],
];
$migration
->mergeProcessOfProperty('settings', $settings);
parent::alterFieldMigration($migration);
}