public function SubscriptionStorageInterface::getSubscriptionsByNewsletter in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Subscription/SubscriptionStorageInterface.php \Drupal\simplenews\Subscription\SubscriptionStorageInterface::getSubscriptionsByNewsletter()
- 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\SubscriptionCode
public function getSubscriptionsByNewsletter($newsletter_id);