public function BatchManager::finished in Workbench Moderation to Content Moderation 8
Finalize the batch process.
File
- src/
BatchManager.php, line 240
Class
- BatchManager
- Manages communication between Batch API and the migration manager.
Namespace
Drupal\wbm2cmCode
public function finished($success, $results, $operations) {
if ($success) {
$message = t('Migration complete. You can now uninstall this module.');
}
else {
// @todo change this to useful error message
$message = t('Finished with an error.');
}
drupal_set_message($message);
return new RedirectResponse(\Drupal::url('wbm2cm.overview', [], [
'absolute' => TRUE,
]));
}