public function Feed::getDescription in Zircon Profile 8
Same name in this branch
- 8 core/modules/aggregator/src/Entity/Feed.php \Drupal\aggregator\Entity\Feed::getDescription()
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Feed.php \Zend\Feed\Reader\Extension\Atom\Feed::getDescription()
- 8 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getDescription()
Same name and namespace in other branches
- 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/DublinCore/Feed.php \Zend\Feed\Reader\Extension\DublinCore\Feed::getDescription()
Get the feed description
Return value
string|null
File
- vendor/
zendframework/ zend-feed/ src/ Reader/ Extension/ DublinCore/ Feed.php, line 110
Class
Namespace
Zend\Feed\Reader\Extension\DublinCoreCode
public function getDescription() {
if (array_key_exists('description', $this->data)) {
return $this->data['description'];
}
$description = $this
->getXpath()
->evaluate('string(' . $this
->getXpathPrefix() . '/dc11:description)');
if (!$description) {
$description = $this
->getXpath()
->evaluate('string(' . $this
->getXpathPrefix() . '/dc10:description)');
}
if (!$description) {
$description = null;
}
$this->data['description'] = $description;
return $this->data['description'];
}