Upgraded imagemagick and manually altered pdf to image module to handle changes....
[yaffs-website] / web / core / profiles / standard / standard.profile
1 <?php
2
3 /**
4  * @file
5  * Enables modules and site configuration for a standard site installation.
6  */
7
8 use Drupal\contact\Entity\ContactForm;
9 use Drupal\Core\Form\FormStateInterface;
10
11 /**
12  * Implements hook_form_FORM_ID_alter() for install_configure_form().
13  *
14  * Allows the profile to alter the site configuration form.
15  */
16 function standard_form_install_configure_form_alter(&$form, FormStateInterface $form_state) {
17   $form['#submit'][] = 'standard_form_install_configure_submit';
18 }
19
20 /**
21  * Submission handler to sync the contact.form.feedback recipient.
22  */
23 function standard_form_install_configure_submit($form, FormStateInterface $form_state) {
24   $site_mail = $form_state->getValue('site_mail');
25   ContactForm::load('feedback')->setRecipients([$site_mail])->trustData()->save();
26 }