You are here

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

Entity state maps are migrated.

File

src/BatchManager.php, line 212

Class

BatchManager
Manages communication between Batch API and the migration manager.

Namespace

Drupal\wbm2cm

Code

public function step7(&$context) {
  if ($this
    ->isStepSkipped('step7')) {
    return;
  }
  $this->manager
    ->recreateModerationStatesOnEntities();
  $this
    ->setStepComplete('step7');
  $context['message'] = 'Importing entity moderation states from key value storage to Content Moderation.';
}