Skip to content

Instantly share code, notes, and snippets.

@suryanto
Created September 29, 2017 09:56
Show Gist options
  • Save suryanto/fefe80da16bf6741d2eaa39ff98de0d8 to your computer and use it in GitHub Desktop.
Save suryanto/fefe80da16bf6741d2eaa39ff98de0d8 to your computer and use it in GitHub Desktop.
<?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