public function PuSHSubscriber::unsubscribe in Feeds 8.2
@todo Unsubscribe from a hub. @todo Make sure we unsubscribe with the correct topic URL as it can differ from the initial subscription URL.
Parameters
$topic_url: The URL of the topic to unsubscribe from.
$callback_url: The callback to unsubscribe.
File
- lib/Drupal/ feeds/ PuSHSubscriber.php, line 114 
- Pubsubhubbub subscriber library.
Class
- PuSHSubscriber
- PubSubHubbub subscriber.
Namespace
Drupal\feedsCode
public function unsubscribe($topic_url, $callback_url) {
  if ($sub = $this
    ->subscription()) {
    $this
      ->request($sub->hub, $sub->topic, 'unsubscribe', $callback_url);
    $sub
      ->delete();
  }
}