function xmlsitemap_rebuild_batch_fetch in XML sitemap 2.x
Same name and namespace in other branches
- 8 xmlsitemap.module \xmlsitemap_rebuild_batch_fetch()
- 6.2 xmlsitemap.generate.inc \xmlsitemap_rebuild_batch_fetch()
- 7.2 xmlsitemap.generate.inc \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 2518 - xmlsitemap XML sitemap
Code
function xmlsitemap_rebuild_batch_fetch($entity_type_id, &$context) {
\Drupal::service('xmlsitemap_generator')
->rebuildBatchFetch($entity_type_id, $context);
}