function mailgun_update_8002 in Mailgun 8
Implements hook_update_N().
Enable tag by mail key. This option can be disabled in admin page.
File
- ./
mailgun.install, line 93 - Contains install/uninstall stuff.
Code
function mailgun_update_8002() {
\Drupal::configFactory()
->getEditable(MailgunHandlerInterface::CONFIG_NAME)
->set('tagging_mailkey', TRUE)
->save();
return t('Mailgun tag by mail key was enabled. See @link for details.', [
'@link' => Link::fromTextAndUrl(t('Tagging'), Url::fromUri('https://documentation.mailgun.com/user_manual.html#tagging', [
'attributes' => [
'onclick' => "target='_blank'",
],
]))
->toString(),
]);
}