You are here

function drush_simple_sitemap_rebuild_queue in Simple XML sitemap 8.3

Same name and namespace in other branches
  1. 4.x simple_sitemap.drush.inc \drush_simple_sitemap_rebuild_queue()

Callback function for hook_drush_command().

Rebuild the sitemap queue for all sitemap variants.

1 string reference to 'drush_simple_sitemap_rebuild_queue'
simple_sitemap_drush_command in ./simple_sitemap.drush.inc
Implements hook_drush_command().

File

./simple_sitemap.drush.inc, line 45
Drush (< 9) integration.

Code

function drush_simple_sitemap_rebuild_queue() {
  \Drupal::service('simple_sitemap.generator')
    ->rebuildQueue();
}