You are here

function migrate_update_8001 in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 core/modules/migrate/migrate.install \migrate_update_8001()

Remove load plugin references from existing migrations.

File

core/modules/migrate/migrate.install, line 16
Contains install and update functions for Migrate.

Code

function migrate_update_8001() {
  $config_factory = \Drupal::configFactory();
  foreach ($config_factory
    ->listAll('migrate.migration.') as $migration_config_name) {
    $migration = $config_factory
      ->getEditable($migration_config_name);
    $migration
      ->clear('load');
    $migration
      ->save(TRUE);
  }
}