You are here

public function WebformSubmissionLimitBlock::blockSubmit in Webform 6.x

Same name and namespace in other branches
  1. 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\Block

Code

public function blockSubmit($form, FormStateInterface $form_state) {
  $values = $form_state
    ->getValues();
  foreach ($this
    ->defaultConfiguration() as $key => $default_value) {
    $this->configuration[$key] = $values[$key];
  }
}