You are here

function drush_wbm2cm_clear in Workbench Moderation to Content Moderation 8.2

1 call to drush_wbm2cm_clear()
drush_wbm2cm_migrate in ./wbm2cm.drush.inc

File

./wbm2cm.drush.inc, line 59

Code

function drush_wbm2cm_clear($standalone = TRUE) {

  /** @var \Drupal\wbm2cm\MigrationController $controller */
  $controller = \Drupal::service('wbm2cm.migration_controller');
  drush_print('Removing Workbench Moderation data...');
  $messages = $controller
    ->executeStepWithMessages('clear');
  array_walk($messages, 'drush_print');
  if ($standalone) {
    drush_print('You should now be able to uninstall Workbench Moderation and install Content Moderation.');
  }
}