You are here

public function SubscriptionStorageInterface::getSubscriptionsByNewsletter in Simplenews 8

Same name and namespace in other branches
  1. 8.2 src/Subscription/SubscriptionStorageInterface.php \Drupal\simplenews\Subscription\SubscriptionStorageInterface::getSubscriptionsByNewsletter()
  2. 3.x src/Subscription/SubscriptionStorageInterface.php \Drupal\simplenews\Subscription\SubscriptionStorageInterface::getSubscriptionsByNewsletter()

Returns a list of active subscriptions for a given newsletter.

WARNING: Use with caution - this might return a huge list.

Parameters

string $newsletter_id: The newsletter id.

Return value

array An array keyed by the mail address, containing another array with the keys mail, uid, language, snid and status.

Related topics

1 method overrides SubscriptionStorageInterface::getSubscriptionsByNewsletter()
SubscriptionStorage::getSubscriptionsByNewsletter in src/Subscription/SubscriptionStorage.php
Returns a list of active subscriptions for a given newsletter.

File

src/Subscription/SubscriptionStorageInterface.php, line 36

Class

SubscriptionStorageInterface
Subscription storage.

Namespace

Drupal\simplenews\Subscription

Code

public function getSubscriptionsByNewsletter($newsletter_id);