You are here

public function Atom::getBaseUrl 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::getBaseUrl()

Get a link to the source website

Return value

string|null

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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