You are here

function commerce_order_update_dependencies in Commerce Core 8.2

Implements hook_update_dependencies().

File

modules/order/commerce_order.install, line 23
Install, update and uninstall functions for the Order module.

Code

function commerce_order_update_dependencies() {
  if (!\Drupal::moduleHandler()
    ->moduleExists('commerce_product')) {
    return [];
  }
  $dependencies = [];

  // Make sure commerce_order_update_8207 is executed after
  // commerce_product_update_8209, so that the 'stores' and 'variations'
  // configurable fields are converted to base fields before the
  // commerce_number_pattern module is enabled.
  $dependencies['commerce_order'][8207] = [
    'commerce_product' => 8209,
  ];
  return $dependencies;
}