You are here

protected function UrlGeneratorBase::setProgressInfo in Simple XML sitemap 8.2

1 call to UrlGeneratorBase::setProgressInfo()
UrlGeneratorBase::processSegment in src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php

File

src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php, line 358

Class

UrlGeneratorBase
Class UrlGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

protected function setProgressInfo() {
  if ($this->context['sandbox']['progress'] != $this->context['sandbox']['max']) {

    // Provide progress info to the batch API.
    $this->context['finished'] = $this->context['sandbox']['progress'] / $this->context['sandbox']['max'];

    // Add processing message after finishing every batch segment.
    $this
      ->setProcessingBatchMessage();
  }
}