public function SubscriptionWidgetInterface::extractNewsletterIds in Simplenews 8
Same name and namespace in other branches
- 8.2 src/SubscriptionWidgetInterface.php \Drupal\simplenews\SubscriptionWidgetInterface::extractNewsletterIds()
- 3.x src/SubscriptionWidgetInterface.php \Drupal\simplenews\SubscriptionWidgetInterface::extractNewsletterIds()
Returns the IDs of the selected or deselected newsletters.
Parameters
array $form_state_value: The value of the widget as returned by FormStateInterface::getValue().
bool $selected: Whether to extract selected (TRUE) or deselected (FALSE) newsletter IDs.
Return value
string[] IDs of selected/deselected newsletters.
1 method overrides SubscriptionWidgetInterface::extractNewsletterIds()
- SubscriptionWidget::extractNewsletterIds in src/
Plugin/ Field/ FieldWidget/ SubscriptionWidget.php - Returns the IDs of the selected or deselected newsletters.
File
- src/
SubscriptionWidgetInterface.php, line 49
Class
- SubscriptionWidgetInterface
- Defines a widget used for the subscriptions field of a Subscriber.
Namespace
Drupal\simplenewsCode
public function extractNewsletterIds($form_state_value, $selected);