You are here

public function PuSHSubscriber::handleRequest in Feeds 8.2

Request handler for subscription callbacks.

File

lib/Drupal/feeds/PuSHSubscriber.php, line 124
Pubsubhubbub subscriber library.

Class

PuSHSubscriber
PubSubHubbub subscriber.

Namespace

Drupal\feeds

Code

public function handleRequest($callback) {
  if (isset($_GET['hub_challenge'])) {
    $this
      ->verifyRequest();
  }
  else {
    if ($raw = $this
      ->receive()) {
      $callback($raw, $this->domain, $this->subscriber_id);
    }
  }
}