public function WebformSubmissionLimitBlock::blockSubmit in Webform 6.x
Same name and namespace in other branches
- 8.5 src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ WebformSubmissionLimitBlock.php, line 245
Class
- WebformSubmissionLimitBlock
- Provides a 'Webform submission limit' block.
Namespace
Drupal\webform\Plugin\BlockCode
public function blockSubmit($form, FormStateInterface $form_state) {
$values = $form_state
->getValues();
foreach ($this
->defaultConfiguration() as $key => $default_value) {
$this->configuration[$key] = $values[$key];
}
}