You are here

protected function SitemapGeneratorBase::getSitemapUrlSettings in Simple XML sitemap 8.3

1 call to SitemapGeneratorBase::getSitemapUrlSettings()
SitemapGeneratorBase::getSitemapUrl in src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php

File

src/Plugin/simple_sitemap/SitemapGenerator/SitemapGeneratorBase.php, line 316

Class

SitemapGeneratorBase
Class SitemapGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Code

protected function getSitemapUrlSettings() {
  if (NULL === $this->sitemapUrlSettings) {
    $this->sitemapUrlSettings = [
      'absolute' => TRUE,
      'base_url' => $this
        ->getCustomBaseUrl(),
      'language' => $this->languageManager
        ->getLanguage(LanguageInterface::LANGCODE_NOT_APPLICABLE),
    ];
  }
  return $this->sitemapUrlSettings;
}