You are here

public function FileEntity::alterFieldFormatterMigration in Media Migration 8

Apply any custom processing to the field formatter migration.

Parameters

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

Overrides FieldPluginBase::alterFieldFormatterMigration

File

src/Plugin/migrate/field/FileEntity.php, line 87

Class

FileEntity
Field Plugin for file_entity to media migrations.

Namespace

Drupal\media_migration\Plugin\migrate\field

Code

public function alterFieldFormatterMigration(MigrationInterface $migration) {
  $settings = [
    'file_entity' => [
      'plugin' => 'file_entity_field_formatter_settings',
    ],
  ];
  $migration
    ->mergeProcessOfProperty('options/settings', $settings);
  parent::alterFieldFormatterMigration($migration);
}