You are here

function commerce_order_post_update_14 in Commerce Core 8.2

Revert the 'commerce_order_item_table' view to hide orphaned order items.

File

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

Code

function commerce_order_post_update_14() {

  /** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
  $config_updater = \Drupal::service('commerce.config_updater');
  $result = $config_updater
    ->revert([
    'views.view.commerce_order_item_table',
  ]);
  $message = implode('<br>', $result
    ->getFailed());
  return $message;
}