function commerce_recurring_post_update_4 in Commerce Recurring Framework 8
Add the new 'Customer' Subscription form mode and displays.
File
- ./
commerce_recurring.post_update.php, line 104 - Post update functions for Commerce Recurring.
Code
function commerce_recurring_post_update_4() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$result = $config_updater
->import([
'core.entity_form_mode.commerce_subscription.customer',
'core.entity_form_display.commerce_subscription.product_variation.customer',
'core.entity_form_display.commerce_subscription.standalone.customer',
]);
$message = implode('<br>', $result
->getFailed());
return $message;
}