protected function AbstractAtom::_setLink in Zircon Profile 8.0
Same name in this branch
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setLink()
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Atom/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\Atom\AbstractAtom::_setLink()
Same name and namespace in other branches
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/AbstractAtom.php \Zend\Feed\Writer\Renderer\Feed\AbstractAtom::_setLink()
Set link to feed
Parameters
DOMDocument $dom:
DOMElement $root:
Return value
void
2 calls to AbstractAtom::_setLink()
- Atom::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ Atom.php - Render Atom feed
- AtomSource::render in vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ AtomSource.php - Render Atom Feed Metadata (Source element)
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Feed/ AbstractAtom.php, line 160
Class
Namespace
Zend\Feed\Writer\Renderer\FeedCode
protected function _setLink(DOMDocument $dom, DOMElement $root) {
if (!$this
->getDataContainer()
->getLink()) {
return;
}
$link = $dom
->createElement('link');
$root
->appendChild($link);
$link
->setAttribute('rel', 'alternate');
$link
->setAttribute('type', 'text/html');
$link
->setAttribute('href', $this
->getDataContainer()
->getLink());
}