function minifyjs_batch_finished in Minify JS 8
Same name and namespace in other branches
- 8.2 minifyjs.module \minifyjs_batch_finished()
- 7 minifyjs.admin.inc \minifyjs_batch_finished()
Helper function for batch, batch finished.
Parameters
bool $success:
array $results:
array $operations:
1 string reference to 'minifyjs_batch_finished'
- ManageFilesForm::submitForm in src/
Form/ ManageFilesForm.php - Form submission handler.
File
- ./
minifyjs.module, line 357
Code
function minifyjs_batch_finished($success, $results, $operations) {
// Output successful operations.
if (isset($results['success'])) {
if (count($results['success'])) {
foreach ($results['success'] as $success) {
drupal_set_message($success);
}
}
}
// Output errors.
if (isset($results['errors'])) {
if (count($results['errors'])) {
foreach ($results['errors'] as $error) {
drupal_set_message($error, 'error');
}
}
}
// Clear the cache so this change will be reflected in
// minifyjs_load_all_files()
\Drupal::cache()
->delete(MINIFYJS_CACHE_CID);
}