You are here

public function YamlFormBlock::blockSubmit in YAML Form 8

Overrides BlockPluginTrait::blockSubmit

File

src/Plugin/Block/YamlFormBlock.php, line 103

Class

YamlFormBlock
Provides a 'Form' block.

Namespace

Drupal\yamlform\Plugin\Block

Code

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