You are here

public function Rss::getFeedLink in Zircon Profile 8

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

Get a link to the feed XML

Return value

string|null

Overrides FeedInterface::getFeedLink

File

vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php, line 503

Class

Rss

Namespace

Zend\Feed\Reader\Feed

Code

public function getFeedLink() {
  if (array_key_exists('feedlink', $this->data)) {
    return $this->data['feedlink'];
  }
  $link = $this
    ->getExtension('Atom')
    ->getFeedLink();
  if ($link === null || empty($link)) {
    $link = $this
      ->getOriginalSourceUri();
  }
  $this->data['feedlink'] = $link;
  return $this->data['feedlink'];
}