You are here

public function Atom::getTitle in Zircon Profile 8.0

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

Get the entry title

Return value

string

Overrides EntryInterface::getTitle

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

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