You are here

public function Feed::getTitle in Zircon Profile 8.0

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

Get the feed title

Return value

string|null

1 call to Feed::getTitle()
Feed::getId in vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php
Get the feed ID

File

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

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Atom

Code

public function getTitle() {
  if (array_key_exists('title', $this->data)) {
    return $this->data['title'];
  }
  $title = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/atom:title)');
  if (!$title) {
    $title = null;
  }
  $this->data['title'] = $title;
  return $this->data['title'];
}