function standard_form_install_configure_submit in Drupal 10
Same name and namespace in other branches
- 8 core/profiles/standard/standard.profile \standard_form_install_configure_submit()
- 9 core/profiles/standard/standard.profile \standard_form_install_configure_submit()
Submission handler to sync the contact.form.feedback recipient.
1 string reference to 'standard_form_install_configure_submit'
- standard_form_install_configure_form_alter in core/
profiles/ standard/ standard.profile - Implements hook_form_FORM_ID_alter() for install_configure_form().
File
- core/
profiles/ standard/ standard.profile, line 23 - Enables modules and site configuration for a standard site installation.
Code
function standard_form_install_configure_submit($form, FormStateInterface $form_state) {
$site_mail = $form_state
->getValue('site_mail');
ContactForm::load('feedback')
->setRecipients([
$site_mail,
])
->trustData()
->save();
}