You are here

function swiftmailer_install in Swift Mailer 8.2

Same name and namespace in other branches
  1. 8 swiftmailer.install \swiftmailer_install()

Implements hook_install().

File

./swiftmailer.install, line 28
Contains install and update functions for SwiftMailer.

Code

function swiftmailer_install() {
  $settings = Drupal::configFactory()
    ->getEditable('mailsystem.settings');
  $settings
    ->set('modules.swiftmailer.none', [
    'formatter' => 'swiftmailer',
    'sender' => 'swiftmailer',
  ])
    ->save();
}