You are here

function drush_wbm2cm_restore in Workbench Moderation to Content Moderation 8.2

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

File

./wbm2cm.drush.inc, line 72

Code

function drush_wbm2cm_restore() {

  /** @var \Drupal\wbm2cm\MigrationController $controller */
  $controller = \Drupal::service('wbm2cm.migration_controller');
  drush_print('Restoring moderation states from temporary tables...');
  $messages = $controller
    ->executeStepWithMessages('restore');
  array_walk($messages, 'drush_print');
}