public function QueueWorker::deleteQueue in Simple XML sitemap 8.3
Same name and namespace in other branches
- 4.x src/Queue/QueueWorker.php \Drupal\simple_sitemap\Queue\QueueWorker::deleteQueue()
Return value
$this
1 call to QueueWorker::deleteQueue()
- QueueWorker::rebuildQueue in src/
Queue/ QueueWorker.php
File
- src/
Queue/ QueueWorker.php, line 377
Class
Namespace
Drupal\simple_sitemap\QueueCode
public function deleteQueue() {
$this->queue
->deleteQueue();
SitemapGeneratorBase::purgeSitemapVariants(NULL, 'unpublished');
$this->state
->set('simple_sitemap.queue_items_initial_amount', 0);
$this->state
->delete('simple_sitemap.queue_stashed_results');
$this
->resetWorker();
return $this;
}