You are here

public function ForwardFormBlock::blockSubmit in Forward 8.2

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/ForwardFormBlock.php, line 132

Class

ForwardFormBlock
Provides a block with a Forward form.

Namespace

Drupal\forward\Plugin\Block

Code

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