You are here

function paragraphs_migration_plugins_alter in Paragraphs 8

Implements hook_migration_plugins_alter().

@todo refactor/rethink this when https://www.drupal.org/project/drupal/issues/2904765 is resolved

File

./paragraphs.module, line 401
Contains paragraphs.module

Code

function paragraphs_migration_plugins_alter(array &$migrations) {
  $migration_plugins_alterer = \Drupal::service('paragraphs.migration_plugins_alterer');
  assert($migration_plugins_alterer instanceof MigrationPluginsAlterer);
  $migration_plugins_alterer
    ->alterMigrationPlugins($migrations);
}