public static function BatchTrait::finishGeneration in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x src/Queue/BatchTrait.php \Drupal\simple_sitemap\Queue\BatchTrait::finishGeneration()
Callback function called by the batch API when all operations are finished.
Parameters
bool $success:
array $results:
array $operations:
Return value
bool
See also
https://api.drupal.org/api/drupal/core!includes!form.inc/group/batch/8
File
- src/
Queue/ BatchTrait.php, line 85
Class
Namespace
Drupal\simple_sitemap\QueueCode
public static function finishGeneration($success, $results, $operations) {
if ($success) {
\Drupal::service('simple_sitemap.logger')
->m('The XML sitemaps have been regenerated.')
->log('info');
}
else {
\Drupal::service('simple_sitemap.logger')
->m(self::$batchErrorMessage)
->display('error', 'administer sitemap settings')
->log('error');
}
return $success;
}