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\feedsCode
public function handleRequest($callback) {
if (isset($_GET['hub_challenge'])) {
$this
->verifyRequest();
}
else {
if ($raw = $this
->receive()) {
$callback($raw, $this->domain, $this->subscriber_id);
}
}
}