public function Rss::render in Zircon Profile 8
Same name in this branch
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php \Zend\Feed\Writer\Renderer\Entry\Rss::render()
- 8 vendor/zendframework/zend-feed/src/Writer/Renderer/Feed/Rss.php \Zend\Feed\Writer\Renderer\Feed\Rss::render()
- 8 core/modules/views/src/Plugin/views/style/Rss.php \Drupal\views\Plugin\views\style\Rss::render()
- 8 core/modules/node/src/Plugin/views/row/Rss.php \Drupal\node\Plugin\views\row\Rss::render()
- 8 core/modules/comment/src/Plugin/views/row/Rss.php \Drupal\comment\Plugin\views\row\Rss::render()
- 8 core/modules/aggregator/src/Plugin/views/row/Rss.php \Drupal\aggregator\Plugin\views\row\Rss::render()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Writer/Renderer/Entry/Rss.php \Zend\Feed\Writer\Renderer\Entry\Rss::render()
Render RSS entry
Return value
File
- vendor/
zendframework/ zend-feed/ src/ Writer/ Renderer/ Entry/ Rss.php, line 38
Class
Namespace
Zend\Feed\Writer\Renderer\EntryCode
public function render() {
$this->dom = new DOMDocument('1.0', $this->container
->getEncoding());
$this->dom->formatOutput = true;
$this->dom->substituteEntities = false;
$entry = $this->dom
->createElement('item');
$this->dom
->appendChild($entry);
$this
->_setTitle($this->dom, $entry);
$this
->_setDescription($this->dom, $entry);
$this
->_setDateCreated($this->dom, $entry);
$this
->_setDateModified($this->dom, $entry);
$this
->_setLink($this->dom, $entry);
$this
->_setId($this->dom, $entry);
$this
->_setAuthors($this->dom, $entry);
$this
->_setEnclosure($this->dom, $entry);
$this
->_setCommentLink($this->dom, $entry);
$this
->_setCategories($this->dom, $entry);
foreach ($this->extensions as $ext) {
$ext
->setType($this
->getType());
$ext
->setRootElement($this
->getRootElement());
$ext
->setDOMDocument($this
->getDOMDocument(), $entry);
$ext
->render();
}
return $this;
}