You are here

public function Rss::getHubs in Zircon Profile 8

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

Get an array of any supported Pusubhubbub endpoints

Return value

array|null

File

vendor/zendframework/zend-feed/src/Reader/Feed/Rss.php, line 600

Class

Rss

Namespace

Zend\Feed\Reader\Feed

Code

public function getHubs() {
  if (array_key_exists('hubs', $this->data)) {
    return $this->data['hubs'];
  }
  $hubs = $this
    ->getExtension('Atom')
    ->getHubs();
  if (empty($hubs)) {
    $hubs = null;
  }
  else {
    $hubs = array_unique($hubs);
  }
  $this->data['hubs'] = $hubs;
  return $this->data['hubs'];
}