You are here

protected function SitemapGeneratorBase::getCustomBaseUrl in Simple XML sitemap 8.3

Return value

string

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

File

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

Class

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

Namespace

Drupal\simple_sitemap\Plugin\simple_sitemap\SitemapGenerator

Code

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