You are here

function commerce_recurring_post_update_6 in Commerce Recurring Framework 8

Add the new 'Subscription orders (administrator)' view and administrator facing suscription view displays.

File

./commerce_recurring.post_update.php, line 139
Post update functions for Commerce Recurring.

Code

function commerce_recurring_post_update_6() {

  /** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
  $config_updater = \Drupal::service('commerce.config_updater');
  $result = $config_updater
    ->import([
    'views.view.commerce_subscription_orders_admin',
    'core.entity_view_display.commerce_subscription.product_variation.default',
    'core.entity_view_display.commerce_subscription.standalone.default',
  ]);
  $message = implode('<br>', $result
    ->getFailed());
  return $message;
}