public function WebformBlock::blockSubmit in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/WebformBlock.php \Drupal\webform\Plugin\Block\WebformBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ WebformBlock.php, line 171
Class
- WebformBlock
- Provides a 'Webform' block.
Namespace
Drupal\webform\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
$this->configuration['webform_id'] = $values['webform_id'];
$this->configuration['default_data'] = $values['settings']['default_data'];
$this->configuration['redirect'] = $values['settings']['redirect'];
}