public function CampaignMonitorSubscribeBlock::blockForm in Campaign Monitor 8.2
Same name and namespace in other branches
- 8 src/Plugin/Block/CampaignMonitorSubscribeBlock.php \Drupal\campaignmonitor\Plugin\Block\CampaignMonitorSubscribeBlock::blockForm()
Returns the configuration form elements specific to this block plugin.
Blocks that need to add form elements to the normal block configuration form should implement this method.
Parameters
array $form: The form definition array for the block configuration form.
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form.
Return value
array The renderable form array representing the entire configuration form.
Overrides BlockPluginTrait::blockForm
File
- src/
Plugin/ Block/ CampaignMonitorSubscribeBlock.php, line 97
Class
- CampaignMonitorSubscribeBlock
- Provides a 'Subscribe' block.
Namespace
Drupal\campaignmonitor\Plugin\BlockCode
public function blockForm($form, FormStateInterface $form_state) {
$form = parent::blockForm($form, $form_state);
$config = $this
->getConfiguration();
$form += $this->campaignMonitorSubscriptionManager
->subscribeSettingsForm($config);
return $form;
}