You are here

public function SimplesitemapCommands::generate in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 8.2 src/Commands/SimplesitemapCommands.php \Drupal\simple_sitemap\Commands\SimplesitemapCommands::generate()
  2. 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\Commands

Code

public function generate() {
  $this->generator
    ->generateSitemap(QueueWorker::GENERATE_TYPE_DRUSH);
}