testing_site_config.install
Same filename in other branches
Install functions for the testing_site_config module.
File
-
core/
profiles/ testing_site_config/ testing_site_config.install
View source
<?php
/**
* @file
* Install functions for the testing_site_config module.
*/
/**
* Implements hook_install().
*/
function testing_site_config_install() : void {
// Set the site email address to something that is not sendmail_from.
\Drupal::configFactory()->getEditable('system.site')
->set('mail', 'profile-testing-site-config@example.com')
->save(TRUE);
// Set the time zone to something that is not the system timezone (which is
// Australia/Sydney in the testing environment).
\Drupal::configFactory()->getEditable('system.date')
->set('timezone.default', 'America/Los_Angeles')
->save(TRUE);
}
Functions
Title | Deprecated | Summary |
---|---|---|
testing_site_config_install | Implements hook_install(). |
Buggy or inaccurate documentation? Please file an issue. Need support? Need help programming? Connect with the Drupal community.