Commit 45c6e7d0 authored by gbyte.co's avatar gbyte.co

Clean up

parent c5d9beb1
......@@ -2,7 +2,7 @@
/**
* @file
* Drush integration.
* Drush (< 9) integration.
*/
/**
......@@ -10,7 +10,7 @@
*/
function simple_sitemap_drush_command() {
$items['simple_sitemap-generate'] = [
'description' => 'Regenerate XML sitemaps for all languages according to the module settings.',
'description' => 'Regenerate the XML sitemap according to the module settings.',
'callback' => 'drush_simple_sitemap_generate',
'drupal dependencies' => ['simple_sitemap'],
];
......@@ -20,7 +20,7 @@ function simple_sitemap_drush_command() {
/**
* Callback function for hook_drush_command().
*
* Regenerate sitemap for all languages.
* Regenerate the XML sitemap.
*/
function drush_simple_sitemap_generate() {
\Drupal::service('simple_sitemap.generator')->generateSitemap('drush');
......
......@@ -30,7 +30,7 @@ class Batch {
const BATCH_INIT_MESSAGE = 'Initializing batch...';
const BATCH_ERROR_MESSAGE = 'An error has occurred. This may result in an incomplete XML sitemap.';
const BATCH_PROGRESS_MESSAGE = 'Processing @current out of @total link types.';
const REGENERATION_FINISHED_MESSAGE = "The <a href='@url' target='_blank'>XML sitemap</a> has been regenerated for all languages.";
const REGENERATION_FINISHED_MESSAGE = "The <a href='@url' target='_blank'>XML sitemap</a> has been regenerated.";
const REGENERATION_FINISHED_ERROR_MESSAGE = 'The sitemap generation finished with an error.';
/**
......
......@@ -25,7 +25,7 @@ class SimpleSitemapCommands extends DrushCommands {
}
/**
* Regenerate XML sitemaps for all languages according to the module settings.
* Regenerate the XML sitemap according to the module settings.
*
* @command simple-sitemap:generate
* @aliases ss:generate, ssg
......
......@@ -200,7 +200,7 @@ class Simplesitemap {
}
/**
* Generates the sitemap for all languages and saves it to the db.
* Generates the XML sitemap and saves it to the db.
*
* @param string $from
* Can be 'form', 'cron', 'drush' or 'nobatch'.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment