You are here

function drush_wbm2cm_save in Workbench Moderation to Content Moderation 8.2

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

File

./wbm2cm.drush.inc, line 50

Code

function drush_wbm2cm_save() {

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