You are here

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

Return value

int

File

src/Queue/QueueWorker.php, line 441

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

public function getProcessedElementCount() {
  $initial = $this
    ->getInitialElementCount();
  $remaining = $this
    ->getQueuedElementCount();
  return $initial > $remaining ? $initial - $remaining : 0;
}