You are here

public function BatchManager::step6 in Workbench Moderation to Content Moderation 8

States and transitions are migrated (i.e. the Workflow entity is created).

File

src/BatchManager.php, line 200

Class

BatchManager
Manages communication between Batch API and the migration manager.

Namespace

Drupal\wbm2cm

Code

public function step6(&$context) {
  if ($this
    ->isStepSkipped('step6')) {
    return;
  }
  $this->manager
    ->recreateWorkbenchModerationWorkflow();
  $this
    ->setStepComplete('step6');
  $context['message'] = 'Importing states and transitions from key value storage to Workflows.';
}