diff --git a/src/Plugin/migrate/source/d7/FieldCollectionItem.php b/src/Plugin/migrate/source/d7/FieldCollectionItem.php index 50af07d341f432b404f25268e80fa08e1f58accf..2c117bebdae3abbefe973df21c70e84f1bdf395e 100644 --- a/src/Plugin/migrate/source/d7/FieldCollectionItem.php +++ b/src/Plugin/migrate/source/d7/FieldCollectionItem.php @@ -52,6 +52,7 @@ class FieldCollectionItem extends FieldableEntity { $query->condition('f.field_name', $this->configuration['field_name']); $query->addField('fc', 'entity_type', 'parent_type'); $query->addField('fc', 'entity_id', 'parent_id'); + $query->addField('fc', 'bundle', 'parent_bundle'); $query->innerJoin('field_revision_' . $this->configuration['field_name'], 'fc', 'fc.' . $this->configuration['field_name'] . '_value = f.item_id and fc.' . $this->configuration['field_name'] . '_revision_id = f.revision_id'); } return $query; @@ -90,6 +91,7 @@ class FieldCollectionItem extends FieldableEntity { 'field_name' => $this->t('The field_collection field_name'), 'parent_type' => $this->t('The type of the parent entity'), 'parent_id' => $this->t('The identifier of the parent entity'), + 'parent_bundle' => $this->t('The bundle of the parent entity'), ]; return $fields;