You are here

public function MailchimpListsFieldSubscribeFormatter::__construct in Mailchimp 8

Same name and namespace in other branches
  1. 2.x modules/mailchimp_lists/src/Plugin/Field/FieldFormatter/MailchimpListsFieldSubscribeFormatter.php \Drupal\mailchimp_lists\Plugin\Field\FieldFormatter\MailchimpListsFieldSubscribeFormatter::__construct()

Create an instance of MailchimpListsFieldSubscribeFormatter.

Overrides FormatterBase::__construct

File

modules/mailchimp_lists/src/Plugin/Field/FieldFormatter/MailchimpListsFieldSubscribeFormatter.php, line 37

Class

MailchimpListsFieldSubscribeFormatter
Plugin implementation of the 'mailchimp_lists_field_subscribe' formatter.

Namespace

Drupal\mailchimp_lists\Plugin\Field\FieldFormatter

Code

public function __construct($plugin_id, $plugin_definition, FieldDefinitionInterface $field_definition, array $settings, $label, $view_mode, array $third_party_settings, FormBuilderInterface $form_builder) {
  parent::__construct($plugin_id, $plugin_definition, $field_definition, $settings, $label, $view_mode, $third_party_settings);
  $this->formBuilder = $form_builder;
}