function webform_form_config_single_import_form_alter in Webform 8.5
Same name and namespace in other branches
- 6.x includes/webform.form_alter.inc \webform_form_config_single_import_form_alter()
Implements hook_form_FORM_ID_alter() for config single import form.
File
- includes/
webform.form_alter.inc, line 182 - Webform module form alter hooks.
Code
function webform_form_config_single_import_form_alter(&$form, FormStateInterface $form_state) {
$config_type = \Drupal::request()->query
->get('config_type');
if ($config_type === 'webform') {
$form['config_type']['#default_value'] = 'webform';
}
}