You are here

public function FieldCollection::alterFieldInstanceMigration in Paragraphs 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/FieldCollection.php, line 121

Class

FieldCollection
Field Plugin for field collection migrations.

Namespace

Drupal\paragraphs\Plugin\migrate\field

Code

public function alterFieldInstanceMigration(MigrationInterface $migration) {
  $settings = [
    'field_collection' => [
      'plugin' => 'field_collection_field_instance_settings',
    ],
  ];
  $migration
    ->mergeProcessOfProperty('settings', $settings);
}