public function ImportPartialForm::finishCallback in Tome 8
Batch finished callback.
Parameters
bool $success: Whether or not the batch was successful.
mixed $results: Batch results set with context.
File
- modules/
tome_sync/ src/ Form/ ImportPartialForm.php, line 305
Class
- ImportPartialForm
- Contains a form for performing a partial import.
Namespace
Drupal\tome_sync\FormCode
public function finishCallback($success, $results) {
$this->state
->set(ImporterInterface::STATE_KEY_IMPORTING, FALSE);
if (!$success) {
$this
->messenger()
->addError($this
->t('Import failed - consult the error log for more details.'));
return;
}
$this
->messenger()
->addStatus($this
->t('Import complete!'));
}