public function MailingListSubscribeForm::__construct in Mailgun 8
Constructs a new MailingListSubscribeForm object.
Parameters
\Mailgun\Mailgun $mailgun_client: The Mailgun client.
string $list_address: The list address.
File
- modules/
mailgun_mailing_lists/ src/ Form/ MailingListSubscribeForm.php, line 38
Class
- MailingListSubscribeForm
- Provides list subscription form.
Namespace
Drupal\mailgun_mailing_lists\FormCode
public function __construct(Mailgun $mailgun_client, $list_address = NULL) {
$this->mailgunClient = $mailgun_client;
$this->listAddress = $list_address;
}