You are here

function commerce_recurring_post_update_3 in Commerce Recurring Framework 8

Add the new 'User subscriptions' view.

File

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

Code

function commerce_recurring_post_update_3() {

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