You are here

public function MailchimpEcommerceHelper::__construct in Mailchimp E-Commerce 8

MailchimpEcommerceHelper constructor.

Parameters

\Mailchimp\MailchimpCampaigns $mc_campaigns: The campaign service.

\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.

\Symfony\Component\HttpFoundation\Request $request: The current request.

\Drupal\Core\Config\ImmutableConfig $config: The mailchimp_ecommerce config.

File

src/MailchimpEcommerceHelper.php, line 59

Class

MailchimpEcommerceHelper
Class MailchimpEcommerceHelper.

Namespace

Drupal\mailchimp_ecommerce

Code

public function __construct(MailchimpCampaigns $mc_campaigns, MessengerInterface $messenger, Request $request, ImmutableConfig $config) {
  $this->mcCampaigns = $mc_campaigns;
  $this->messenger = $messenger;
  $this->request = $request;
  $this->config = $config;
}