You are here

public function PuSHSubscriber::subscribed in Feeds 8.2

Determine whether this subscriber is successfully subscribed or not.

File

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

Class

PuSHSubscriber
PubSubHubbub subscriber.

Namespace

Drupal\feeds

Code

public function subscribed() {
  if ($sub = $this
    ->subscription()) {
    if ($sub->status == 'subscribed') {
      return TRUE;
    }
  }
  return FALSE;
}