You are here

public function Atom::getLink in Zircon Profile 8

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

Get a link to the source website

Return value

string|null

Overrides FeedInterface::getLink

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

public function getLink() {
  if (array_key_exists('link', $this->data)) {
    return $this->data['link'];
  }
  $link = $this
    ->getExtension('Atom')
    ->getLink();
  $this->data['link'] = $link;
  return $this->data['link'];
}