You are here

public function MailchimpListsSubscribeForm::setFieldFormatter in Mailchimp 8

Same name and namespace in other branches
  1. 2.x 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;
}