You are here

public function SitemapGenerator::getCustomBaseUrl in Simple XML sitemap 8.2

Return value

string

1 call to SitemapGenerator::getCustomBaseUrl()
SitemapGenerator::generateSitemapIndex in src/SitemapGenerator.php
Generates and returns the sitemap index for all sitemap chunks.

File

src/SitemapGenerator.php, line 185

Class

SitemapGenerator
Class SitemapGenerator @package Drupal\simple_sitemap

Namespace

Drupal\simple_sitemap

Code

public function getCustomBaseUrl() {
  $customBaseUrl = $this->settings['base_url'];
  return !empty($customBaseUrl) ? $customBaseUrl : $GLOBALS['base_url'];
}