Mercurial > hg > cmmr2012-drupal-site
comparison core/modules/migrate/migrate.install @ 0:c75dbcec494b
Initial commit from drush-created site
author | Chris Cannam |
---|---|
date | Thu, 05 Jul 2018 14:24:15 +0000 |
parents | |
children |
comparison
equal
deleted
inserted
replaced
-1:000000000000 | 0:c75dbcec494b |
---|---|
1 <?php | |
2 | |
3 /** | |
4 * @file | |
5 * Contains install and update functions for Migrate. | |
6 */ | |
7 | |
8 /** | |
9 * Remove load plugin references from existing migrations. | |
10 */ | |
11 function migrate_update_8001() { | |
12 $config_factory = \Drupal::configFactory(); | |
13 foreach ($config_factory->listAll('migrate.migration.') as $migration_config_name) { | |
14 $migration = $config_factory->getEditable($migration_config_name); | |
15 $migration->clear('load'); | |
16 $migration->save(TRUE); | |
17 } | |
18 } |