You are here

protected function QueueWorker::stashResults in Simple XML sitemap 4.x

Same name and namespace in other branches
  1. 8.3 src/Queue/QueueWorker.php \Drupal\simple_sitemap\Queue\QueueWorker::stashResults()
1 call to QueueWorker::stashResults()
QueueWorker::generateSitemap in src/Queue/QueueWorker.php

File

src/Queue/QueueWorker.php, line 363

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

protected function stashResults() : void {
  $this->state
    ->set('simple_sitemap.queue_stashed_results', [
    'variant' => $this->variantProcessedNow
      ->id(),
    'results' => $this->results,
    'processed_results' => $this->processedResults,
    'processed_paths' => $this->processedPaths,
  ]);
  $this
    ->resetWorker();
}