public function MailchimpSignupController::__construct in Mailchimp 2.x
Same name and namespace in other branches
- 8 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\ControllerCode
public function __construct(MessengerInterface $messenger, FormBuilderInterface $form_builder) {
$this->messenger = $messenger;
$this->formBuilder = $form_builder;
}