You are here

public function QueueWorker::generationInProgress 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::generationInProgress()

Return value

bool

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

File

src/Queue/QueueWorker.php, line 426

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

public function generationInProgress() : bool {
  return 0 < $this
    ->getQueuedElementCount() + $this
    ->getStashedResultCount();
}