You are here

function mandrill_install in Mandrill 8

Implements hook_install().

File

./mandrill.install, line 11
Install, update, and uninstall functions for the mandrill module.

Code

function mandrill_install() {

  // Set default values for config which require dynamic values.
  \Drupal::configFactory()
    ->getEditable('mandrill.settings')
    ->set('mandrill_from_email', \Drupal::config('system.site')
    ->get('mail'))
    ->set('mandrill_from_name', \Drupal::config('system.site')
    ->get('site_name'))
    ->save();
}