protected function MailchimpListsSelectWidget::getInterestGroupsDefaults in Mailchimp 2.x
Parameters
$instance:
Return value
array
1 call to MailchimpListsSelectWidget::getInterestGroupsDefaults()
- MailchimpListsSelectWidget::setupInterestGroups in modules/
mailchimp_lists/ src/ Plugin/ Field/ FieldWidget/ MailchimpListsSelectWidget.php
File
- modules/
mailchimp_lists/ src/ Plugin/ Field/ FieldWidget/ MailchimpListsSelectWidget.php, line 255
Class
- MailchimpListsSelectWidget
- Plugin implementation of the 'mailchimp_lists_select' widget.
Namespace
Drupal\mailchimp_lists\Plugin\Field\FieldWidgetCode
protected function getInterestGroupsDefaults($instance) {
$groups_default = $instance
->getInterestGroups();
if ($groups_default == NULL) {
$groups_default = [];
}
return $groups_default;
}