You are here

protected function QueueWorker::publishCurrentVariant 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::publishCurrentVariant()
1 call to QueueWorker::publishCurrentVariant()
QueueWorker::generateSitemap in src/Queue/QueueWorker.php

File

src/Queue/QueueWorker.php, line 354

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

protected function publishCurrentVariant() {
  if ($this->variantProcessedNow !== NULL) {
    $this->manager
      ->getSitemapGenerator($this->generatorProcessedNow)
      ->setSitemapVariant($this->variantProcessedNow)
      ->setSettings($this->generatorSettings)
      ->generateIndex()
      ->publish();
  }
}