function _paragraphs_migration_entity_type_adjust

Map field_collection_item and 'paragraphs_item' fields to 'paragraph'.

Parameters

array $migration: The migration to process.

string $destination: The process destination.

Deprecated

in paragraphs:8.x-1.13 and is removed from paragraphs:8.x-2.0. Use \Drupal\paragraphs\MigrationPluginsAlterer::paragraphsMigrationEntityTypeAdjust().

See also

https://www.drupal.org/project/paragraphs/issues/2911244

File

paragraphs/paragraphs.module, line 504
Contains paragraphs.module

Code

function _paragraphs_migration_entity_type_adjust(array &$migration, $destination = 'entity_type') {
  $migration_plugins_alterer = \Drupal::service('paragraphs.migration_plugins_alterer');
  assert($migration_plugins_alterer instanceof MigrationPluginsAlterer);
  $migration_plugins_alterer
    ->paragraphsMigrationEntityTypeAdjust($migration, $destination);
}