You are here

public function MigrationDrushCommandProgress::clearProgress in Migrate Tools 8.4

Same name and namespace in other branches
  1. 8.5 src/EventSubscriber/MigrationDrushCommandProgress.php \Drupal\migrate_tools\EventSubscriber\MigrationDrushCommandProgress::clearProgress()

Event callback for removing the progress bar after operation is finished.

File

src/EventSubscriber/MigrationDrushCommandProgress.php, line 98

Class

MigrationDrushCommandProgress
Import and rollback progress bar.

Namespace

Drupal\migrate_tools\EventSubscriber

Code

public function clearProgress() {
  if ($this
    ->isProgressBar()) {
    $this->symfonyProgressBar
      ->clear();
  }
}