You are here

public function SubscriberInterface::isSubscribed in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/SubscriberInterface.php \Drupal\simplenews\SubscriberInterface::isSubscribed()
  2. 3.x 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
Provides an interface defining a contant message entity

Namespace

Drupal\simplenews

Code

public function isSubscribed($newsletter_id);