public function Generator::rebuildQueue in Simple XML sitemap 4.x
Deletes the queue and queues links from currently set variants.
Return value
$this
Throws
\Drupal\Component\Plugin\Exception\PluginException
File
- src/
Manager/ Generator.php, line 165
Class
- Generator
- Main managing service.
Namespace
Drupal\simple_sitemap\ManagerCode
public function rebuildQueue() : Generator {
if (!$this->lock
->lockMayBeAvailable(QueueWorker::LOCK_ID)) {
$this->logger
->m('Unable to acquire a lock for sitemap generation.')
->log('error')
->display('error');
return $this;
}
$this->queueWorker
->rebuildQueue($this
->getVariants());
return $this;
}