public function XmlSitemapCommands::regenerate in XML sitemap 8
Same name and namespace in other branches
- 2.x 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();
}