Mercurial > hg > isophonics-drupal-site
diff vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php @ 18:af1871eacc83
Update to Drupal core 8.7.1
author | Chris Cannam |
---|---|
date | Thu, 09 May 2019 15:33:08 +0100 |
parents | c2387f117808 |
children |
line wrap: on
line diff
--- a/vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php Thu Feb 28 13:21:36 2019 +0000 +++ b/vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Entry.php Thu May 09 15:33:08 2019 +0100 @@ -130,6 +130,28 @@ } /** + * Get the entry title + * + * @return string + */ + public function getTitle() + { + if (isset($this->data['title'])) { + return $this->data['title']; + } + + $title = $this->xpath->evaluate('string(' . $this->getXpathPrefix() . '/itunes:title)'); + + if (! $title) { + $title = null; + } + + $this->data['title'] = $title; + + return $this->data['title']; + } + + /** * Get the entry subtitle * * @return string