You are here

public function ContactBlock::blockSubmit in Contact Block 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/ContactBlock.php, line 197

Class

ContactBlock
Provides a 'ContactBlock' block.

Namespace

Drupal\contact_block\Plugin\Block

Code

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