public function CampaignMonitorSubscribeBlock::__construct in Campaign Monitor 8.2
Constructs a CampaignMonitorSubscribeBlock object.
Parameters
mixed[] $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\campaignmonitor\CampaignMonitorManager $campaignmonitor_manager: The campaign monitor manager.
\Drupal\campaignmonitor\CampaignMonitorSubscriptionManager $campaignmonitor_subscription_manager: The campaign monitor subscription manager.
\Drupal\Core\Form\FormBuilderInterface $form_builder: The form builder.
Overrides BlockPluginTrait::__construct
File
- src/
Plugin/ Block/ CampaignMonitorSubscribeBlock.php, line 71
Class
- CampaignMonitorSubscribeBlock
- Provides a 'Subscribe' block.
Namespace
Drupal\campaignmonitor\Plugin\BlockCode
public function __construct(array $configuration, $plugin_id, $plugin_definition, CampaignMonitorManager $campaignmonitor_manager, CampaignMonitorSubscriptionManager $campaignmonitor_subscription_manager, FormBuilderInterface $form_builder) {
$this->campaignMonitorManager = $campaignmonitor_manager;
$this->createSendManager = $this->campaignMonitorManager
->createClientObj();
$this->campaignMonitorSubscriptionManager = $campaignmonitor_subscription_manager;
$this->formBuilder = $form_builder;
}