public function SimplesitemapCommands::generate in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 src/Commands/SimplesitemapCommands.php \Drupal\simple_sitemap\Commands\SimplesitemapCommands::generate()
- 4.x src/Commands/SimpleSitemapCommands.php \Drupal\simple_sitemap\Commands\SimpleSitemapCommands::generate()
Regenerate the XML sitemap according to the module settings.
@command simple-sitemap:generate @validate-module-enabled simple_sitemap @aliases ss:generate, ssg, simple_sitemap:generate, simple_sitemap-generate
File
- src/
Commands/ SimplesitemapCommands.php, line 34
Class
- SimplesitemapCommands
- Class SimplesitemapCommands @package Drupal\simple_sitemap\Commands
Namespace
Drupal\simple_sitemap\CommandsCode
public function generate() {
$this->generator
->generateSitemap('drush');
}