You are here

public function MailchimpListsSubscribeForm::setFieldFormatter 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::setFieldFormatter()

Sets the field formatter service.

Parameters

\Drupal\mailchimp_lists\Plugin\Field\FieldFormatter\MailchimpListsFieldSubscribeFormatter $fieldFormatter: The field formatter service.

File

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

Class

MailchimpListsSubscribeForm
Subscribe to a Mailchimp list/audience.

Namespace

Drupal\mailchimp_lists\Form

Code

public function setFieldFormatter(MailchimpListsFieldSubscribeFormatter $fieldFormatter) {
  $this->fieldFormatter = $fieldFormatter;
}