testing_site_config.install 625 B

12345678910111213141516171819202122
  1. <?php
  2. /**
  3. * @file
  4. * Install functions for the testing_site_config module.
  5. */
  6. /**
  7. * Implements hook_install().
  8. */
  9. function testing_site_config_install() {
  10. // Set the site email address to something that is not sendmail_from.
  11. \Drupal::configFactory()->getEditable('system.site')
  12. ->set('mail', 'profile-testing-site-config@example.com')
  13. ->save(TRUE);
  14. // Set the time zone to something that is not the system timezone (which is
  15. // Australia/Sydney in the testing environment).
  16. \Drupal::configFactory()->getEditable('system.date')
  17. ->set('timezone.default', 'America/Los_Angeles')
  18. ->save(TRUE);
  19. }