You are here

public function Atom::getLink in Zircon Profile 8.0

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

Get a specific link

Parameters

int $index:

Return value

string

Overrides EntryInterface::getLink

1 call to Atom::getLink()
Atom::getPermalink in vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php
Get a permalink to the entry

File

vendor/zendframework/zend-feed/src/Reader/Entry/Atom.php, line 200

Class

Atom

Namespace

Zend\Feed\Reader\Entry

Code

public function getLink($index = 0) {
  if (!array_key_exists('links', $this->data)) {
    $this
      ->getLinks();
  }
  if (isset($this->data['links'][$index])) {
    return $this->data['links'][$index];
  }
  return;
}