You are here

function xmlsitemap_rebuild_batch_clear in XML sitemap 2.x

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

Batch callback; clear sitemap links for entities.

Parameters

array $entity_type_ids: Entity types to rebuild.

bool $save_custom: Save custom data.

array|\ArrayAccess $context: Context to be rebuilt.

1 string reference to 'xmlsitemap_rebuild_batch_clear'
xmlsitemap_rebuild_batch in ./xmlsitemap.module
Batch information callback for rebuilding the sitemap data.

File

./xmlsitemap.module, line 2506
xmlsitemap XML sitemap

Code

function xmlsitemap_rebuild_batch_clear(array $entity_type_ids, $save_custom, &$context = []) {
  \Drupal::service('xmlsitemap_generator')
    ->rebuildBatchClear($entity_type_ids, $save_custom, $context);
}