You are here

public function MailingListSubscribeBlock::blockSubmit in Mailgun 8

Overrides BlockPluginTrait::blockSubmit

File

modules/mailgun_mailing_lists/src/Plugin/Block/MailingListSubscribeBlock.php, line 115

Class

MailingListSubscribeBlock
Provides a 'MailingListSubscribeBlock' block.

Namespace

Drupal\mailgun_mailing_lists\Plugin\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  parent::blockSubmit($form, $form_state);
  $this->configuration['mailing_list'] = $form_state
    ->getValue('mailing_list');
}