function commerce_promotion_post_update_12 in Commerce Core 8.2
Import Coupons view.
File
- modules/
promotion/ commerce_promotion.post_update.php, line 493 - Post update functions for Promotion.
Code
function commerce_promotion_post_update_12() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$result = $config_updater
->import([
'views.view.commerce_promotion_coupons',
]);
return implode('<br>', $result
->getFailed());
}