You are here

public function Publisher::removeHubUrl in Zircon Profile 8.0

Same name and namespace in other branches
  1. 8 vendor/zendframework/zend-feed/src/PubSubHubbub/Publisher.php \Zend\Feed\PubSubHubbub\Publisher::removeHubUrl()

Remove a Hub Server URL

Parameters

string $url:

Return value

Publisher

File

vendor/zendframework/zend-feed/src/PubSubHubbub/Publisher.php, line 132

Class

Publisher

Namespace

Zend\Feed\PubSubHubbub

Code

public function removeHubUrl($url) {
  if (!in_array($url, $this
    ->getHubUrls())) {
    return $this;
  }
  $key = array_search($url, $this->hubUrls);
  unset($this->hubUrls[$key]);
  return $this;
}