You are here

public function MailchimpSignupController::__construct in Mailchimp 8

Same name and namespace in other branches
  1. 2.x modules/mailchimp_signup/src/Controller/MailchimpSignupController.php \Drupal\mailchimp_signup\Controller\MailchimpSignupController::__construct()

MailchimpSignupController constructor.

Parameters

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

\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.

File

modules/mailchimp_signup/src/Controller/MailchimpSignupController.php, line 38

Class

MailchimpSignupController
Mailchimp Signup controller.

Namespace

Drupal\mailchimp_signup\Controller

Code

public function __construct(MessengerInterface $messenger, FormBuilderInterface $form_builder) {
  $this->messenger = $messenger;
  $this->formBuilder = $form_builder;
}