public static function FileMimeApplyForm::finished in File MIME 8
Batch finish callback.
File
- src/
Form/ FileMimeApplyForm.php, line 118
Class
- FileMimeApplyForm
- Implements the file MIME apply settings form.
Namespace
Drupal\filemime\FormCode
public static function finished($success, $results, $operations) {
$variables = [
'@processed' => $results['processed'],
'@updated' => $results['updated'],
];
if ($success) {
\Drupal::messenger()
->addMessage(t('Processed @processed files and updated @updated files.', $variables));
}
else {
\Drupal::messenger()
->addError(t('An error occurred after processing @processed files and updating @updated files.', $variables));
}
}