You are here

public function Entry::getKeywords in Zircon Profile 8.0

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

Get the entry keywords

Return value

string

File

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

Class

Entry

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'];
}