You are here

public function MigrationPluginAlterer::alter in Media Migration 8

Alters migrate plugins.

Parameters

array $migrations: The array of migration plugins.

File

modules/media_migration_tools/src/MigrationPluginAlterer.php, line 18

Class

MigrationPluginAlterer
Migration plugin alterer for "fixing" migrations provided by Migrate Tools.

Namespace

Drupal\media_migration_tools

Code

public function alter(array &$migrations) {
  $this
    ->switchIdMapPlugin($migrations);
  $this
    ->addRequirementsKey($migrations);
}