You are here

public function Atom::getId 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::getId()
  2. 8 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getId()
Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getId()

Get the feed ID

Return value

string|null

Overrides FeedInterface::getId

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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