commerce_log.post_update.php in Commerce Core 8.2
Post update functions for Log.
File
modules/log/commerce_log.post_update.phpView source
<?php
/**
* @file
* Post update functions for Log.
*/
/**
* Revert the Activity view to make the date column sortable.
*/
function commerce_log_post_update_1() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$result = $config_updater
->revert([
'views.view.commerce_activity',
], FALSE);
$message = implode('<br>', $result
->getFailed());
return $message;
}
/**
* Revert the Activity view to change page limit and ordering.
*/
function commerce_log_post_update_2() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$result = $config_updater
->revert([
'views.view.commerce_activity',
], FALSE);
$message = implode('<br>', $result
->getFailed());
return $message;
}
/**
* Revert the Activity view to allow admin comments.
*/
function commerce_log_post_update_3() {
/** @var \Drupal\commerce\Config\ConfigUpdaterInterface $config_updater */
$config_updater = \Drupal::service('commerce.config_updater');
$result = $config_updater
->revert([
'views.view.commerce_activity',
], FALSE);
return implode('<br>', $result
->getFailed());
}
Functions
Name | Description |
---|---|
commerce_log_post_update_1 | Revert the Activity view to make the date column sortable. |
commerce_log_post_update_2 | Revert the Activity view to change page limit and ordering. |
commerce_log_post_update_3 | Revert the Activity view to allow admin comments. |