You are here

public function XmlSitemapCommands::regenerate in XML sitemap 8

Same name and namespace in other branches
  1. 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\Commands

Code

public function regenerate() {
  $batch = xmlsitemap_regenerate_batch();
  batch_set($batch);
  drush_backend_batch_process();
}