You are here

function xmlsitemap_batch_variable_set in XML sitemap 2.x

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

Batch callback; set an array of variables and their values.

Parameters

array $variables: Variables to be set during the batch process.

2 string references to 'xmlsitemap_batch_variable_set'
xmlsitemap_rebuild_batch in ./xmlsitemap.module
Batch information callback for rebuilding the sitemap data.
xmlsitemap_regenerate_batch in ./xmlsitemap.module
Batch information callback for regenerating the sitemap files.

File

./xmlsitemap.module, line 2492
xmlsitemap XML sitemap

Code

function xmlsitemap_batch_variable_set(array $variables) {
  \Drupal::service('xmlsitemap_generator')
    ->batchVariableSet($variables);
}