Created
September 29, 2017 09:56
-
-
Save suryanto/fefe80da16bf6741d2eaa39ff98de0d8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* Implements hook_uninstall(). | |
*/ | |
function my_custom_migration_uninstall() { | |
$configs = [ | |
'migrate_plus.migration_group.my_custom_migration', | |
'migrate_plus.migration.company', | |
'migrate_plus.migration.contact', | |
]; | |
foreach($configs as $config) { | |
$delete = \Drupal::database()->delete('config') | |
->condition('name', $config) | |
->execute(); | |
} | |
drupal_flush_all_caches(); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment