protected function MigrationDrushCommandProgress::isProgressBar in Migrate Tools 8.5
Same name and namespace in other branches
- 8.4 src/EventSubscriber/MigrationDrushCommandProgress.php \Drupal\migrate_tools\EventSubscriber\MigrationDrushCommandProgress::isProgressBar()
Determine if a progress bar should be displayed.
Return value
bool TRUE if a progress bar should be displayed, FALSE otherwise.
2 calls to MigrationDrushCommandProgress::isProgressBar()
- MigrationDrushCommandProgress::clearProgress in src/
EventSubscriber/ MigrationDrushCommandProgress.php - Event callback for removing the progress bar after operation is finished.
- MigrationDrushCommandProgress::updateProgressBar in src/
EventSubscriber/ MigrationDrushCommandProgress.php - Event callback for advancing the progress bar.
File
- src/
EventSubscriber/ MigrationDrushCommandProgress.php, line 112
Class
- MigrationDrushCommandProgress
- Import and rollback progress bar.
Namespace
Drupal\migrate_tools\EventSubscriberCode
protected function isProgressBar() {
// Can't do anything if the progress bar is not initialised; this probably
// means we're not running as a Drush command and so we should do nothing.
if (!$this->symfonyProgressBar) {
return FALSE;
}
return TRUE;
}