public function SimpleSitemapCommands::generate in Simple XML sitemap 4.x
Same name and namespace in other branches
- 8.3 src/Commands/SimplesitemapCommands.php \Drupal\simple_sitemap\Commands\SimplesitemapCommands::generate()
- 8.2 src/Commands/SimplesitemapCommands.php \Drupal\simple_sitemap\Commands\SimplesitemapCommands::generate()
Regenerate all XML sitemap variants or continue generation.
@command simple-sitemap:generate
@usage drush simple-sitemap:generate Regenerate all XML sitemap variants or continue generation.
@validate-module-enabled simple_sitemap
@aliases ssg, simple-sitemap-generate
File
- src/
Commands/ SimpleSitemapCommands.php, line 43
Class
- SimpleSitemapCommands
- Class SimpleSitemapCommands
Namespace
Drupal\simple_sitemap\CommandsCode
public function generate() : void {
$this->generator
->generateSitemap(QueueWorker::GENERATE_TYPE_DRUSH);
}