function cms_content_sync_update_8013 in CMS Content Sync 8
Same name and namespace in other branches
- 2.1.x cms_content_sync.install \cms_content_sync_update_8013()
- 2.0.x cms_content_sync.install \cms_content_sync_update_8013()
Implements hook_update_N();.
Move base_url to key_value store.
File
- ./
cms_content_sync.install, line 269 - Install file for cms_content_sync.
Code
function cms_content_sync_update_8013(&$sandbox) {
$base_url = \Drupal::config('cms_content_sync.settings')
->get('cms_content_sync_base_url');
\Drupal::state()
->set('cms_content_sync.base_url', $base_url);
\Drupal::configFactory()
->getEditable('cms_content_sync.settings')
->clear('cms_content_sync_base_url')
->save();
return 'Move base_url to key_value store.';
}