public function FieldPluginBase::alterFieldMigration in Drupal 9
Same name and namespace in other branches
- 8 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::alterFieldMigration()
- 10 core/modules/migrate_drupal/src/Plugin/migrate/field/FieldPluginBase.php \Drupal\migrate_drupal\Plugin\migrate\field\FieldPluginBase::alterFieldMigration()
Apply any custom processing to the field migration.
Parameters
\Drupal\migrate\Plugin\MigrationInterface $migration: The migration entity.
Overrides MigrateFieldInterface::alterFieldMigration
File
- core/
modules/ migrate_drupal/ src/ Plugin/ migrate/ field/ FieldPluginBase.php, line 25
Class
- FieldPluginBase
- The base class for all field plugins.
Namespace
Drupal\migrate_drupal\Plugin\migrate\fieldCode
public function alterFieldMigration(MigrationInterface $migration) {
$process[0]['map'][$this->pluginId][$this->pluginId] = $this->pluginId;
$migration
->mergeProcessOfProperty('type', $process);
}