You are here

protected function QueueWorker::queueElements 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::queueElements()
1 call to QueueWorker::queueElements()
QueueWorker::queue in src/Queue/QueueWorker.php

File

src/Queue/QueueWorker.php, line 194

Class

QueueWorker

Namespace

Drupal\simple_sitemap\Queue

Code

protected function queueElements($elements) : void {
  $this->queue
    ->createItems($elements);
  $this->state
    ->set('simple_sitemap.queue_items_initial_amount', $this->state
    ->get('simple_sitemap.queue_items_initial_amount') + count($elements));
}