function hook_simple_sitemap_url_generators_alter in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 simple_sitemap.api.php \hook_simple_sitemap_url_generators_alter()
- 8.2 simple_sitemap.api.php \hook_simple_sitemap_url_generators_alter()
Alter properties of and remove URL generator plugins.
Parameters
array $url_generators:
1 invocation of hook_simple_sitemap_url_generators_alter()
- UrlGeneratorManager::__construct in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorManager.php - UrlGeneratorManager constructor.
File
- ./
simple_sitemap.api.php, line 112 - Hooks provided by the Simple XML Sitemap module.
Code
function hook_simple_sitemap_url_generators_alter(array &$url_generators) {
// Remove the entity generator.
unset($url_generators['entity']);
}