You are here

public function Atom::getTitle in Zircon Profile 8

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

Get the feed title

Return value

string|null

Overrides FeedInterface::getTitle

File

vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php, line 323

Class

Atom

Namespace

Zend\Feed\Reader\Feed

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'];
}