You are here

protected function QueueWorker::generateResultsFromElement in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x src/Queue/QueueWorker.php \Drupal\simple_sitemap\Queue\QueueWorker::generateResultsFromElement()

Parameters

$element:

Throws

\Drupal\Component\Plugin\Exception\PluginException

1 call to QueueWorker::generateResultsFromElement()
QueueWorker::generateSitemap in src/Queue/QueueWorker.php

File

src/Queue/QueueWorker.php, line 293

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

protected function generateResultsFromElement($element) {
  $results = $this->manager
    ->getUrlGenerator($element->data['url_generator'])
    ->setSitemapVariant($this->variantProcessedNow)
    ->setSettings($this->generatorSettings)
    ->generate($element->data['data']);
  $this
    ->removeDuplicates($results);
  $this->results = array_merge($this->results, $results);
}