function swiftmailer_install in Swift Mailer 8
Same name and namespace in other branches
- 8.2 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();
}