protected function UrlGeneratorBase::setProcessingBatchMessage in Simple XML sitemap 8.2
1 call to UrlGeneratorBase::setProcessingBatchMessage()
- UrlGeneratorBase::setProgressInfo in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php
File
- src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php, line 369
Class
- UrlGeneratorBase
- Class UrlGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator
Namespace
Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGeneratorCode
protected function setProcessingBatchMessage() {
$results = $this
->getBatchResults();
end($results);
if (!empty($path = $results[key($results)]['meta']['path'])) {
$this->context['message'] = $this
->t(self::PROCESSING_PATH_MESSAGE, [
'@current' => $this->context['sandbox']['progress'],
'@max' => $this->context['sandbox']['max'],
'@path' => HTML::escape($path),
]);
}
}