protected function QueueWorker::generateResultsFromElement in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Queue/QueueWorker.php \Drupal\simple_sitemap\Queue\QueueWorker::generateResultsFromElement()
Parameters
$element:
1 call to QueueWorker::generateResultsFromElement()
- QueueWorker::generateSitemap in src/
Queue/ QueueWorker.php
File
- src/
Queue/ QueueWorker.php, line 279
Class
Namespace
Drupal\simple_sitemap\QueueCode
protected function generateResultsFromElement($element) : void {
$results = $this->variantProcessedNow
->getType()
->getUrlGenerators()[$element->data['url_generator']]
->setSitemapVariant($this->variantProcessedNow)
->generate($element->data['data']);
$this
->removeDuplicates($results);
$this->results = array_merge($this->results, $results);
}