You are here

public function SubscriptionWidgetInterface::setAvailableNewsletterIds in Simplenews 8

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

Set the newsletters available for selection.

Parameters

string[] $newsletter_ids: Indexed array of newsletter IDs.

1 method overrides SubscriptionWidgetInterface::setAvailableNewsletterIds()
SubscriptionWidget::setAvailableNewsletterIds in src/Plugin/Field/FieldWidget/SubscriptionWidget.php
Set the newsletters available for selection.

File

src/SubscriptionWidgetInterface.php, line 18

Class

SubscriptionWidgetInterface
Defines a widget used for the subscriptions field of a Subscriber.

Namespace

Drupal\simplenews

Code

public function setAvailableNewsletterIds(array $newsletter_ids);