You are here

function mailchimp_update_8001 in Mailchimp 8

Same name and namespace in other branches
  1. 2.x mailchimp.install \mailchimp_update_8001()

Update the class name in configuration.

File

./mailchimp.install, line 48
Install, update and uninstall functions for the Mailchimp Module.

Code

function mailchimp_update_8001(&$sandbox) {
  $config = \Drupal::configFactory()
    ->getEditable('mailchimp.settings');
  $config
    ->set('api_classname', 'Mailchimp\\Mailchimp');
  $config
    ->save();
}