You are here

public function Atom::getImage in Zircon Profile 8

Same name and namespace in other branches
  1. 8.0 vendor/zendframework/zend-feed/src/Reader/Feed/Atom.php \Zend\Feed\Reader\Feed\Atom::getImage()

Get feed image data

Return value

array|null

File

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

Class

Atom

Namespace

Zend\Feed\Reader\Feed

Code

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