function open_readspeaker_update_8101 in Open ReadSpeaker 8
Rename the open_readspeaker_dev_mode config to open_readspeaker_post_mode.
File
- ./
open_readspeaker.install, line 13 - Requirements and update functions for the Open ReadSpeaker module.
Code
function open_readspeaker_update_8101() {
$config_factory = \Drupal::configFactory();
$config = $config_factory
->getEditable('open_readspeaker.settings');
$config
->set('open_readspeaker_post_mode', $config
->get('open_readspeaker_dev_mode'));
$config
->clear('open_readspeaker_dev_mode');
$config
->save(TRUE);
}