Pathologic was missing because of a .git folder inside.
[yaffs-website] / web / modules / contrib / simple_sitemap / simple_sitemap.drush.inc
1 <?php
2
3 /**
4  * @file
5  * Drush integration.
6  */
7
8 /**
9  * Implements hook_drush_command().
10  */
11 function simple_sitemap_drush_command() {
12   $items['simple_sitemap-generate'] = [
13     'description' => 'Regenerate XML sitemaps for all languages according to the module settings.',
14     'callback' => 'drush_simple_sitemap_generate',
15     'drupal dependencies' => ['simple_sitemap'],
16   ];
17   return $items;
18 }
19
20 /**
21  * Callback function for hook_drush_command().
22  *
23  * Regenerate sitemap for all languages.
24  */
25 function drush_simple_sitemap_generate() {
26   \Drupal::service('simple_sitemap.generator')->generateSitemap('drush');
27 }