Skip to content
Snippets Groups Projects
Commit 3f84a26a authored by Adam Shepherd's avatar Adam Shepherd Committed by Adam Shepherd
Browse files

Issue #3304400 by bamberjp, AdamPS: Cannot create Contact Form

parent 8d84c417
No related branches found
No related tags found
No related merge requests found
......@@ -126,4 +126,9 @@ function symfony_mailer_bc_form_alter(&$form, FormStateInterface $form_state, $f
$form['mailer_policy'] = $helper->renderTypePolicy($config['type']);
}
}
if ($form_id == 'contact_form_add_form') {
// Set a default value for the hidden field so the form can verify.
$form['recipients']['#default_value'] = \Drupal::config('system.site')->get('mail');
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment