public function XmlSitemapCommands::regenerate in XML sitemap 2.x
Same name and namespace in other branches
- 8 src/Commands/XmlSitemapCommands.php \Drupal\xmlsitemap\Commands\XmlSitemapCommands::regenerate()
Regenerate the XML sitemap files.
@validate-module-enabled xmlsitemap
@command xmlsitemap:regenerate @aliases xmlsitemap-regenerate
File
- src/
Commands/ XmlSitemapCommands.php, line 61
Class
- XmlSitemapCommands
- Drush commands for XML sitemap.
Namespace
Drupal\xmlsitemap\CommandsCode
public function regenerate() {
$batch = xmlsitemap_regenerate_batch();
batch_set($batch);
drush_backend_batch_process();
}