You are here

public function Rss::getCommentFeedLink in Zircon Profile 8.0

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

Returns a URI pointing to a feed of all comments for this entry

Return value

string

Overrides EntryInterface::getCommentFeedLink

File

vendor/zendframework/zend-feed/src/Reader/Entry/Rss.php, line 557

Class

Rss

Namespace

Zend\Feed\Reader\Entry

Code

public function getCommentFeedLink() {
  if (array_key_exists('commentfeedlink', $this->data)) {
    return $this->data['commentfeedlink'];
  }
  $commentfeedlink = $this
    ->getExtension('WellFormedWeb')
    ->getCommentFeedLink();
  if (!$commentfeedlink) {
    $commentfeedlink = $this
      ->getExtension('Atom')
      ->getCommentFeedLink('rss');
  }
  if (!$commentfeedlink) {
    $commentfeedlink = $this
      ->getExtension('Atom')
      ->getCommentFeedLink('rdf');
  }
  if (!$commentfeedlink) {
    $commentfeedlink = null;
  }
  $this->data['commentfeedlink'] = $commentfeedlink;
  return $this->data['commentfeedlink'];
}