function demo_umami_form_install_configure_submit

Same name in other branches
  1. 9 core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_submit()
  2. 8.9.x core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_submit()
  3. 10 core/profiles/demo_umami/demo_umami.profile \demo_umami_form_install_configure_submit()

Submission handler to sync the contact.form.feedback recipient.

1 string reference to 'demo_umami_form_install_configure_submit'
demo_umami_form_install_configure_form_alter in core/profiles/demo_umami/demo_umami.profile
Implements hook_form_FORM_ID_alter() for install_configure_form().

File

core/profiles/demo_umami/demo_umami.profile, line 46

Code

function demo_umami_form_install_configure_submit($form, FormStateInterface $form_state) {
    $site_mail = $form_state->getValue('site_mail');
    ContactForm::load('feedback')->setRecipients([
        $site_mail,
    ])
        ->trustData()
        ->save();
    $password = $form_state->getValue('account')['pass'];
    demo_umami_set_users_passwords($password);
}

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