You are here

public function Entry::getCommentFeedLink in Zircon Profile 8.0

Same name in this branch
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/WellFormedWeb/Entry.php \Zend\Feed\Reader\Extension\WellFormedWeb\Entry::getCommentFeedLink()
  2. 8.0 vendor/zendframework/zend-feed/src/Reader/Extension/Atom/Entry.php \Zend\Feed\Reader\Extension\Atom\Entry::getCommentFeedLink()
Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/Reader/Extension/WellFormedWeb/Entry.php \Zend\Feed\Reader\Extension\WellFormedWeb\Entry::getCommentFeedLink()

Get the entry comment Uri

Return value

string|null

File

vendor/zendframework/zend-feed/src/Reader/Extension/WellFormedWeb/Entry.php, line 23

Class

Entry

Namespace

Zend\Feed\Reader\Extension\WellFormedWeb

Code

public function getCommentFeedLink() {
  $name = 'commentRss';
  if (array_key_exists($name, $this->data)) {
    return $this->data[$name];
  }
  $data = $this->xpath
    ->evaluate('string(' . $this
    ->getXpathPrefix() . '/wfw:' . $name . ')');
  if (!$data) {
    $data = null;
  }
  $this->data[$name] = $data;
  return $data;
}