You are here

function xmlsitemap_regenerate_batch_generate in XML sitemap 8

Same name and namespace in other branches
  1. 6.2 xmlsitemap.generate.inc \xmlsitemap_regenerate_batch_generate()
  2. 7.2 xmlsitemap.generate.inc \xmlsitemap_regenerate_batch_generate()
  3. 2.x xmlsitemap.module \xmlsitemap_regenerate_batch_generate()

Batch callback; generate all pages of a sitemap.

Parameters

string $smid: Sitemap entity id.

array|\ArrayAccess $context: Sitemap context.

1 string reference to 'xmlsitemap_regenerate_batch_generate'
xmlsitemap_regenerate_batch in ./xmlsitemap.module
Batch information callback for regenerating the sitemap files.

File

./xmlsitemap.module, line 2480
xmlsitemap XML sitemap

Code

function xmlsitemap_regenerate_batch_generate($smid, &$context = []) {
  \Drupal::service('xmlsitemap_generator')
    ->regenerateBatchGenerate($smid, $context);
}