public function BatchManager::isStepSkipped in Workbench Moderation to Content Moderation 8
Determine if a particular step can be processed.
Return value
bool True if it can be processed, else false.
8 calls to BatchManager::isStepSkipped()
- BatchManager::step1 in src/
BatchManager.php - States and transitions are stored in key value (i.e. the Workflow entity is created).
- BatchManager::step2 in src/
BatchManager.php - Entity state maps are stored in key value.
- BatchManager::step3 in src/
BatchManager.php - WBM uninstalled.
- BatchManager::step4 in src/
BatchManager.php - Workflows installed.
- BatchManager::step5 in src/
BatchManager.php - CM installed.
File
- src/
BatchManager.php, line 117
Class
- BatchManager
- Manages communication between Batch API and the migration manager.
Namespace
Drupal\wbm2cmCode
public function isStepSkipped($step) {
if ($this
->isProcessingStopped()) {
$this->logger
->info('Step %step is skipped because: %reason', [
'%step' => $step,
'%reason' => 'Processing is stopped',
]);
return TRUE;
}
if ($this
->isStepComplete($step)) {
$this->logger
->info('Step %step is skipped because: %reason', [
'%step' => $step,
'%reason' => 'Step is complete',
]);
return TRUE;
}
$this->logger
->info('Step %step is NOT skipped', [
'%step' => $step,
]);
return FALSE;
}