migrate.install 448 B

123456789101112131415161718
  1. <?php
  2. /**
  3. * @file
  4. * Contains install and update functions for Migrate.
  5. */
  6. /**
  7. * Remove load plugin references from existing migrations.
  8. */
  9. function migrate_update_8001() {
  10. $config_factory = \Drupal::configFactory();
  11. foreach ($config_factory->listAll('migrate.migration.') as $migration_config_name) {
  12. $migration = $config_factory->getEditable($migration_config_name);
  13. $migration->clear('load');
  14. $migration->save(TRUE);
  15. }
  16. }