You are here

public function Rss::getContent in Zircon Profile 8

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

Get the entry content

Return value

string

Overrides EntryInterface::getContent

File

vendor/zendframework/zend-feed/src/Reader/Entry/Rss.php, line 146

Class

Rss

Namespace

Zend\Feed\Reader\Entry

Code

public function getContent() {
  if (array_key_exists('content', $this->data)) {
    return $this->data['content'];
  }
  $content = $this
    ->getExtension('Content')
    ->getContent();
  if (!$content) {
    $content = $this
      ->getDescription();
  }
  if (empty($content)) {
    $content = $this
      ->getExtension('Atom')
      ->getContent();
  }
  $this->data['content'] = $content;
  return $this->data['content'];
}