public function MediaSitemapGenerator::sitemapGenerateFinished in Media Sitemap 8
File
- src/
MediaSitemapGenerator.php, line 113 - Contains \Drupal\media_sitemap\MediaSitemapGenerator.
Class
- MediaSitemapGenerator
- Class MediaSitemapGenerator.
Namespace
Drupal\media_sitemapCode
public function sitemapGenerateFinished($success, $results, $operations) {
if ($success) {
$this->messenger
->addMessage(t('Image Sitemap Generated Successfully.'));
}
else {
$error_operation = reset($operations);
$this->messenger
->addMessage(t('An error occurred while processing @operation with arguments : @args', array(
'@operation' => $error_operation[0],
'@args' => print_r($error_operation[0], TRUE),
)));
}
}