function commerce_invoice_post_update_4 in Commerce Invoice 8.2
Revert the order invoices view to improve a few labels.
File
- ./
commerce_invoice.post_update.php, line 85 - Post update functions for Invoice.
Code
function commerce_invoice_post_update_4() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$config_names = [
'views.view.order_invoices',
];
$result = $config_updater
->revert($config_names, FALSE);
$message = implode('<br>', $result
->getFailed());
return $message;
}