You are here

public function Entry::getSubtitle in Zircon Profile 8

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

Get the entry subtitle

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php, line 133

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

public function getSubtitle() {
  if (isset($this->data['subtitle'])) {
    return $this->data['subtitle'];
  }
  $subtitle = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/itunes:subtitle)');
  if (!$subtitle) {
    $subtitle = null;
  }
  $this->data['subtitle'] = $subtitle;
  return $this->data['subtitle'];
}