You are here

function wbm2cm_uninstall in Workbench Moderation to Content Moderation 8

Same name and namespace in other branches
  1. 8.2 wbm2cm.install \wbm2cm_uninstall()

Implements hook_uninstall().

File

./wbm2cm.install, line 11
Provides hooks to integration the module with Drupal.

Code

function wbm2cm_uninstall() {
  $migrate_manager = \Drupal::service('wbm2cm.migrate_manager');
  $batch_manager = \Drupal::service('wbm2cm.batch_manager');

  // Clear out key value storage.
  $migrate_manager
    ->purgeAllKeyValueStores();
  $batch_manager
    ->purgeAllKeyValueStores();
}