public function ContactFormBlock::blockSubmit in Form Block 8
Same name and namespace in other branches
- 2.0.x 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\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$this->configuration['contact_form'] = $form_state
->getValue('formblock_contact_form');
}