function postmark_install in Postmark 8
Implements hook_install().
File
- ./
postmark.install, line 14 - Install and uninstall routines.
Code
function postmark_install() {
$config = \Drupal::configFactory()
->getEditable('system.mail');
$mail_plugins = $config
->get('interface');
if (in_array('postmark', array_keys($mail_plugins))) {
return;
}
$mail_plugins['postmark'] = 'postmark';
$config
->set('interface', $mail_plugins)
->save();
}