Issue #2559381 by mikeryan: Migrate needs core update path
parent
2d5dc23546
commit
63a6753be8
|
|
@ -0,0 +1,27 @@
|
||||||
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @file
|
||||||
|
* Contains install and update functions for Migrate.
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @addtogroup updates-8.0.0-beta
|
||||||
|
* @{
|
||||||
|
*/
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Remove load plugin references from existing migrations.
|
||||||
|
*/
|
||||||
|
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);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @} End of "addtogroup updates-8.0.0-beta".
|
||||||
|
*/
|
||||||
Loading…
Reference in New Issue