You are here

function xmlsitemap_rebuild_batch_fetch in XML sitemap 8

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

Batch callback; fetch and add the sitemap links for a specific entity type.

Parameters

string $entity_type_id: Entity type ID.

array|\ArrayAccess $context: Sitemap context.

1 string reference to 'xmlsitemap_rebuild_batch_fetch'
xmlsitemap_get_link_info in ./xmlsitemap.module
Returns information about supported sitemap link types.

File

./xmlsitemap.module, line 2587
xmlsitemap XML sitemap

Code

function xmlsitemap_rebuild_batch_fetch($entity_type_id, &$context) {
  \Drupal::service('xmlsitemap_generator')
    ->rebuildBatchFetch($entity_type_id, $context);
}