You are here

function commerce_currency_resolver_update_8006 in Commerce Currency Resolver 8

Enable shipping submodule if needed.

See also

https://www.drupal.org/project/commerce_currency_resolver/issues/3111998

File

./commerce_currency_resolver.install, line 182
Install file for commerce_currency_resolver.

Code

function commerce_currency_resolver_update_8006() {
  if (\Drupal::service('module_handler')
    ->moduleExists('commerce_shipping')) {
    \Drupal::service('module_installer')
      ->install([
      'commerce_currency_resolver_shipping',
    ]);
  }
}