public function SimplesitemapCommands::generate in Simple XML sitemap 8.3
Same name and namespace in other branches
- 8.2 src/Commands/SimplesitemapCommands.php \Drupal\simple_sitemap\Commands\SimplesitemapCommands::generate()
- 4.x 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 40
Class
- SimplesitemapCommands
- Class SimplesitemapCommands @package Drupal\simple_sitemap\Commands
Namespace
Drupal\simple_sitemap\CommandsCode
public function generate() {
$this->generator
->generateSitemap(QueueWorker::GENERATE_TYPE_DRUSH);
}