You are here

public function Atom::getContent in Zircon Profile 8

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

Get the entry content

Return value

string

Overrides EntryInterface::getContent

File

vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php, line 91

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

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