You are here

public function Entry::getLink in Zircon Profile 8

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

Get a specific link

Parameters

int $index:

Return value

string

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

File

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

Class

Entry

Namespace

Zend\Feed\Reader\Extension\Atom

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