You are here

public function SubscriberInterface::isSubscribed in Simplenews 3.x

Same name and namespace in other branches
  1. 8.2 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isSubscribed()
  2. 8 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isSubscribed()

Check if the subscriber has an active subscription to a certain newsletter.

Parameters

string $newsletter_id: The ID of a newsletter.

Return value

bool Returns TRUE if the subscriber has the subscription, otherwise FALSE.

1 method overrides SubscriberInterface::isSubscribed()
Subscriber::isSubscribed in src/Entity/Subscriber.php
Check if the subscriber has an active subscription to a certain newsletter.

File

src/SubscriberInterface.php, line 131

Class

SubscriberInterface
Simplenews subscriber entity interface.

Namespace

Drupal\simplenews

Code

public function isSubscribed($newsletter_id);