@@ -123,7 +123,10 @@ function xmlsitemap_requirements($phase) {
$generated_ago=REQUEST_TIME-$generated_last;
$requirements['xmlsitemap_generated']=[
'title'=>$t('XML sitemap'),
'value'=>$generated_last?$t('Last attempted generation on @date (@interval ago).',['@date'=>format_date($generated_last,'small'),'@interval'=>\Drupal::service('date.formatter')->formatInterval($generated_ago)]):$t('Cached files have not been generated yet.'),
'value'=>$generated_last?$t('Last attempted generation on @date (@interval ago).',[
$requirements['xmlsitemap_generated']['description']=$t('The XML cached files are out of date and need to be regenerated. You can <a href="@link-cron">run cron manually</a> to regenerate the sitemap files.',['@link-cron'=>Url::fromRoute('system.run_cron',[],['query'=>drupal_get_destination()])->toString()]);
$requirements['xmlsitemap_generated']['description']=$t('The XML cached files are out of date and need to be regenerated. You can <a href="@link-cron">run cron manually</a> to regenerate the sitemap files.',[
'description'=>$t('In order to list user profile links in the sitemap, the anonymous user must have the <a href="@perm-link"><em>View user profiles</em> permission</a>.',['@perm-link'=>Url::fromRoute('entity.user_role.edit_permissions_form',['user_role'=>DRUPAL_ANONYMOUS_RID],['fragment'=>'module-user'])->toString()]),
'description'=>$t('In order to list user profile links in the sitemap, the anonymous user must have the <a href="@perm-link"><em>View user profiles</em> permission</a>.',[
@@ -112,7 +124,10 @@ class XmlSitemapEnginesSettingsForm extends ConfigFormBase {
$form['custom_urls']=[
'#type'=>'textarea',
'#title'=>$this->t('Custom submission URLs'),
'#description'=>$this->t('Enter one URL per line. The token [sitemap] will be replaced with the URL to your sitemap. For example: %example-before would become %example-after.',['%example-before'=>'http://example.com/ping?[sitemap]','%example-after'=>xmlsitemap_engines_prepare_url('http://example.com/ping?[sitemap]',Url::fromRoute('xmlsitemap.sitemap_xml',[],['absolute'=>TRUE])->toString())]),
'#description'=>$this->t('Enter one URL per line. The token [sitemap] will be replaced with the URL to your sitemap. For example: %example-before would become %example-after.',[