You are here

protected function UrlGeneratorBase::setCurrentId in Simple XML sitemap 8.2

Parameters

$id:

1 call to UrlGeneratorBase::setCurrentId()
UrlGeneratorBase::generate in src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php
Called by batch.

File

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

Class

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

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Code

protected function setCurrentId($id) {
  if ($this
    ->isBatch()) {
    $this->context['sandbox']['progress']++;
    $this->context['sandbox']['current_id'] = $id;
  }
}