You are here

function commerce_recurring_post_update_2 in Commerce Recurring Framework 8

Add the new 'Subscriptions' view.

File

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

Code

function commerce_recurring_post_update_2() {

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