Map field_collection_item and 'paragraphs_item' fields to 'paragraph'.
array $migration: Thei migration to process.
string $process_property: The process destination.
public function paragraphsMigrationEntityTypeAdjust(array &$migration, $process_property) {
if (!$this
->paragraphsMigrationPrepareProcess($migration['process'], $process_property)) {
return;
}
$entity_type_process =& $migration['process'][$process_property];
$entity_type_process[] = [
'plugin' => 'static_map',
'map' => [
'field_collection_item' => 'paragraph',
'paragraphs_item' => 'paragraph',
],
'bypass' => TRUE,
];
}