public function TestEntityMappingWebformHandler::submitConfigurationForm in Webform 6.x
Same name and namespace in other branches
- 8.5 tests/modules/webform_test_handler/src/Plugin/WebformHandler/TestEntityMappingWebformHandler.php \Drupal\webform_test_handler\Plugin\WebformHandler\TestEntityMappingWebformHandler::submitConfigurationForm()
Form submission handler.
Parameters
array $form: An associative array containing the structure of the plugin form as built by static::buildConfigurationForm().
\Drupal\Core\Form\FormStateInterface $form_state: The current state of the form. Calling code should pass on a subform state created through \Drupal\Core\Form\SubformState::createForSubform().
Overrides WebformHandlerBase::submitConfigurationForm
File
- tests/
modules/ webform_test_handler/ src/ Plugin/ WebformHandler/ TestEntityMappingWebformHandler.php, line 185
Class
- TestEntityMappingWebformHandler
- Webform submission entity mapping test handler.
Namespace
Drupal\webform_test_handler\Plugin\WebformHandlerCode
public function submitConfigurationForm(array &$form, FormStateInterface $form_state) {
parent::submitConfigurationForm($form, $form_state);
$this->configuration['entity_type'] = $form_state
->getValue('entity_type');
$this->configuration['bundle'] = $form_state
->getValue('bundle');
$this->configuration['fields'] = $form_state
->getValue('fields');
}