You are here

function commerce_order_post_update_10 in Commerce Core 8.2

Update the customer profile type.

File

modules/order/commerce_order.post_update.php, line 161
Post update functions for Order.

Code

function commerce_order_post_update_10() {
  $profile_type = ProfileType::load('customer');
  if ($profile_type) {
    $profile_type
      ->setDisplayLabel('Customer information');
    $profile_type
      ->setThirdPartySetting('commerce_order', 'customer_profile_type', TRUE);
    $profile_type
      ->save();
  }
}