You are here

public function MediaImage::alterFieldInstanceMigration in Media Migration 8

Apply any custom processing to the field instance migration.

Parameters

\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.

Overrides FieldPluginBase::alterFieldInstanceMigration

File

src/Plugin/migrate/field/MediaImage.php, line 39

Class

MediaImage
Field Plugin for image field to media image field migrations.

Namespace

Drupal\media_migration\Plugin\migrate\field

Code

public function alterFieldInstanceMigration(MigrationInterface $migration) {
  $settings = [
    'media_image' => [
      'plugin' => 'media_image_field_instance_settings',
    ],
  ];
  $migration
    ->mergeProcessOfProperty('settings', $settings);
  parent::alterFieldInstanceMigration($migration);
}