You are here

public function Atom::getFeedLink in Zircon Profile 8.0

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

Get a link to the feed's XML Url

Return value

string|null

Overrides FeedInterface::getFeedLink

File

vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php, line 301

Class

Atom

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