public function SubscriptionsFormBase::getNewsletterIds in Simplenews 8
Same name and namespace in other branches
- 8.2 src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getNewsletterIds()
- 3.x src/Form/SubscriptionsFormBase.php \Drupal\simplenews\Form\SubscriptionsFormBase::getNewsletterIds()
Returns the newsletters available to select from.
Return value
string[] The newsletter IDs available to select from, as an indexed array.
1 call to SubscriptionsFormBase::getNewsletterIds()
- SubscriptionsFormBase::getOnlyNewsletterId in src/
Form/ SubscriptionsFormBase.php - Convenience method for the case of only one available newsletter.
File
- src/
Form/ SubscriptionsFormBase.php, line 81
Class
- SubscriptionsFormBase
- Entity form for Subscriber with common routines.
Namespace
Drupal\simplenews\FormCode
public function getNewsletterIds() {
return array_keys($this
->getNewsletters());
}