function standard_form_install_configure_submit

Same name in other branches
  1. 9 core/profiles/standard/standard.profile \standard_form_install_configure_submit()
  2. 8.9.x core/profiles/standard/standard.profile \standard_form_install_configure_submit()
  3. 11.x 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

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();
}

Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.