function entity_usage_update_8300 in Entity Usage 8.3
Rename items_per_page into items_per_group.
File
- ./
entity_usage.install, line 423 - Install, update and uninstall functions for entity_usage module.
Code
function entity_usage_update_8300(&$sandbox) {
$config = \Drupal::configFactory()
->getEditable('entity_usage.settings');
$previous_setting = $config
->get('usage_controller_items_per_page');
if (!empty($previous_setting)) {
$config
->set('usage_controller_items_per_page', NULL)
->set('usage_controller_items_per_group', $previous_setting)
->save(TRUE);
}
}