function drush_simple_sitemap_generate in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 simple_sitemap.drush.inc \drush_simple_sitemap_generate()
- 4.x simple_sitemap.drush.inc \drush_simple_sitemap_generate()
Callback function for hook_drush_command().
Regenerate the XML sitemap.
1 string reference to 'drush_simple_sitemap_generate'
- simple_sitemap_drush_command in ./
simple_sitemap.drush.inc - Implements hook_drush_command().
File
- ./
simple_sitemap.drush.inc, line 25 - Drush (< 9) integration.
Code
function drush_simple_sitemap_generate() {
\Drupal::service('simple_sitemap.generator')
->generateSitemap('drush');
}