protected function UrlGeneratorBase::replaceBaseUrlWithCustom in Simple XML sitemap 8.2
Same name and namespace in other branches
- 8.3 src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorBase::replaceBaseUrlWithCustom()
- 4.x src/Plugin/simple_sitemap/UrlGenerator/UrlGeneratorBase.php \Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator\UrlGeneratorBase::replaceBaseUrlWithCustom()
Parameters
string $url:
Return value
string
4 calls to UrlGeneratorBase::replaceBaseUrlWithCustom()
- UrlGeneratorBase::getAlternateUrlsForAllLanguages in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php - UrlGeneratorBase::getAlternateUrlsForDefaultLanguage in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php - UrlGeneratorBase::getAlternateUrlsForTranslatedLanguages in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php - UrlGeneratorBase::getImages in src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php
File
- src/
Plugin/ simple_sitemap/ UrlGenerator/ UrlGeneratorBase.php, line 385
Class
- UrlGeneratorBase
- Class UrlGeneratorBase @package Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGenerator
Namespace
Drupal\simple_sitemap\Plugin\simple_sitemap\UrlGeneratorCode
protected function replaceBaseUrlWithCustom($url) {
return !empty($this->batchSettings['base_url']) ? str_replace($GLOBALS['base_url'], $this->batchSettings['base_url'], $url) : $url;
}