protected function AbstractAtom::_setBaseUrl in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setBaseUrl()
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setBaseUrl()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setBaseUrl()
Set base URL to feed links
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
1 call to AbstractAtom::_setBaseUrl()
- Source::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom/ Source.php - Render Atom Feed Metadata (Source element)
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom/ AbstractAtom.php, line 342
Class
Namespace
Zend\Feed\Writer\Renderer\Feed\AtomCode
protected function _setBaseUrl(DOMDocument $dom, DOMElement $root) {
$baseUrl = $this
->getDataContainer()
->getBaseUrl();
if (!$baseUrl) {
return;
}
$root
->setAttribute('xml:base', $baseUrl);
}