You are here

public function MailchimpListsSubscribeForm::setFieldInstance in Mailchimp 2.x

Same name and namespace in other branches
  1. 8 modules/mailchimp_lists/src/Form/MailchimpListsSubscribeForm.php \Drupal\mailchimp_lists\Form\MailchimpListsSubscribeForm::setFieldInstance()

Sets the field instance service.

Parameters

\Drupal\mailchimp_lists\Plugin\Field\FieldType\MailchimpListsSubscription $fieldInstance: The field instance service.

File

modules/mailchimp_lists/src/Form/MailchimpListsSubscribeForm.php, line 64

Class

MailchimpListsSubscribeForm
Subscribe to a Mailchimp list/audience.

Namespace

Drupal\mailchimp_lists\Form

Code

public function setFieldInstance(MailchimpListsSubscription $fieldInstance) {
  $this->fieldInstance = $fieldInstance;
}