You are here

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

States and transitions are stored in key value (i.e. the Workflow entity is created).

File

src/BatchManager.php, line 141

Class

BatchManager
Manages communication between Batch API and the migration manager.

Namespace

Drupal\wbm2cm

Code

public function step1(&$context) {
  if ($this
    ->isStepSkipped('step1')) {
    return;
  }
  $this->manager
    ->saveWorkbenchModerationStatesAndTransitions();
  $this
    ->setStepComplete('step1');
  $context['message'] = 'Saving Workbench Moderation states and transitions to key value storage.';
}