diff --git a/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php b/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php index 45a4ebc..469d29f 100644 --- a/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php +++ b/core/modules/migrate_drupal/src/Plugin/CckFieldMigrateSourceInterface.php @@ -9,6 +9,9 @@ use Drupal\migrate\Plugin\MigrateSourceInterface; +/** + * Defines an interface for cck field sources that need per type processing. + */ interface CckFieldMigrateSourceInterface extends MigrateSourceInterface { /** diff --git a/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php b/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php index e8212dc..adbd919 100644 --- a/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php +++ b/core/modules/migrate_drupal/src/Plugin/migrate/load/LoadEntity.php @@ -85,6 +85,8 @@ public function loadMultiple(EntityStorageInterface $storage, array $sub_ids = N $migration->getSourcePlugin()->checkRequirements(); $source_plugin = $migration->getSourcePlugin(); + // Discuss simplifying per field type processing. + // @see https://www.drupal.org/node/2395993 if ($source_plugin instanceof CckFieldMigrateSourceInterface) { foreach ($source_plugin->fieldData() as $field_name => $data) { // Specifically process the link field until core is fixed.