You are here

public function QueueWorker::getInitialElementCount 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::getInitialElementCount()
1 call to QueueWorker::getInitialElementCount()
QueueWorker::getProcessedElementCount in src/Queue/QueueWorker.php

File

src/Queue/QueueWorker.php, line 409

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

public function getInitialElementCount() {
  if (NULL === $this->elementsTotal) {
    $this->elementsTotal = (int) $this->state
      ->get('simple_sitemap.queue_items_initial_amount', 0);
  }
  return $this->elementsTotal;
}