You are here

public function ContactFormBlock::blockSubmit in Form Block 2.0.x

Same name and namespace in other branches
  1. 8 src/Plugin/Block/ContactFormBlock.php \Drupal\formblock\Plugin\Block\ContactFormBlock::blockSubmit()

Overrides \Drupal\block\BlockBase::blockSubmit().

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/ContactFormBlock.php, line 173

Class

ContactFormBlock
Provides a block for contact form.

Namespace

Drupal\formblock\Plugin\Block

Code

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