You are here

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

All keyvalue temporary state is cleaned up except for progress state.

File

src/BatchManager.php, line 224

Class

BatchManager
Manages communication between Batch API and the migration manager.

Namespace

Drupal\wbm2cm

Code

public function step8(&$context) {
  if ($this
    ->isStepSkipped('step8')) {
    return;
  }
  $this->manager
    ->cleanupKeyValue();
  $this
    ->setStepComplete('step8');

  // This is the last step, so set the migration as finished.
  $this->manager
    ->setFinished();
  $context['message'] = 'Clean up key value storage.';
}