public function MailingListSubscribeBlock::__construct in Mailgun 8
Constructs a new MailingListSubscribeBlock object.
Parameters
array $configuration: A configuration array containing information about the plugin instance.
string $plugin_id: The plugin_id for the plugin instance.
mixed $plugin_definition: The plugin implementation definition.
\Mailgun\Mailgun $mailgun_client: The Mailgun client.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
Overrides BlockPluginTrait::__construct
File
- modules/
mailgun_mailing_lists/ src/ Plugin/ Block/ MailingListSubscribeBlock.php, line 64
Class
- MailingListSubscribeBlock
- Provides a 'MailingListSubscribeBlock' block.
Namespace
Drupal\mailgun_mailing_lists\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, Mailgun $mailgun_client, FormBuilderInterface $form_builder) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->mailgunClient = $mailgun_client;
$this->formBuilder = $form_builder;
}