You are here

protected function Rss::_setBaseUrl in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php \Zend\Feed\Writer\Renderer\Feed\Rss::_setBaseUrl()

Set base URL to feed links

Parameters

DOMDocument $dom:

DOMElement $root:

Return value

void

1 call to Rss::_setBaseUrl()
Rss::render in vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php
Render RSS feed

File

vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php, line 456

Class

Rss

Namespace

Zend\Feed\Writer\Renderer\Feed

Code

protected function _setBaseUrl(DOMDocument $dom, DOMElement $root) {
  $baseUrl = $this
    ->getDataContainer()
    ->getBaseUrl();
  if (!$baseUrl) {
    return;
  }
  $root
    ->setAttribute('xml:base', $baseUrl);
}