public function WebformSubmissionLimitBlock::blockSubmit in Webform 8.5
Same name and namespace in other branches
- 6.x src/Plugin/Block/WebformSubmissionLimitBlock.php \Drupal\webform\Plugin\Block\WebformSubmissionLimitBlock::blockSubmit()
Overrides BlockPluginTrait::blockSubmit
File
- src/
Plugin/ Block/ WebformSubmissionLimitBlock.php, line 277
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];
}
}