You are here

public function WebformBlock::blockSubmit in Webform 8.5

Same name and namespace in other branches
  1. 6.x src/Plugin/Block/WebformBlock.php \Drupal\webform\Plugin\Block\WebformBlock::blockSubmit()

Overrides BlockPluginTrait::blockSubmit

File

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

Class

WebformBlock
Provides a 'Webform' block.

Namespace

Drupal\webform\Plugin\Block

Code

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