You are here

public function Feed::getKeywords in Zircon Profile 8.0

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

Get the entry keywords

Return value

string

File

vendor/zendframework/zend-feed/src/Reader/Extension/Podcast/Feed.php, line 154

Class

Feed

Namespace

Zend\Feed\Reader\Extension\Podcast

Code

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