public function MailchimpSignupSubscribeBlock::__construct in Mailchimp 2.x
Same name and namespace in other branches
- 8 modules/mailchimp_signup/src/Plugin/Block/MailchimpSignupSubscribeBlock.php \Drupal\mailchimp_signup\Plugin\Block\MailchimpSignupSubscribeBlock::__construct()
Constructs a new MailchimpSignupSubscribeBlock.
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.
\Drupal\Core\Messenger\MessengerInterface $messenger: The messenger service.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder service.
Overrides BlockPluginTrait::__construct
File
- modules/
mailchimp_signup/ src/ Plugin/ Block/ MailchimpSignupSubscribeBlock.php, line 61
Class
- MailchimpSignupSubscribeBlock
- Provides a 'Subscribe' block.
Namespace
Drupal\mailchimp_signup\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, MessengerInterface $messenger, FormBuilderInterface $form_builder) {
parent::__construct($configuration, $plugin_id, $plugin_definition);
$this->messenger = $messenger;
$this->formBuilder = $form_builder;
}