function _media_gallery_update_config in Media Gallery 8
Update config helper function.
Parameters
string $config_name: Config name.
1 call to _media_gallery_update_config()
- media_gallery_update_8101 in ./
media_gallery.install - Update "All Galleries view".
File
- ./
media_gallery.install, line 26 - Install, update and uninstall functions for the Media Gallery.
Code
function _media_gallery_update_config($config_name) {
$config_path = drupal_get_path('module', 'media_gallery') . '/config/install';
$source = new FileStorage($config_path);
$config_storage = \Drupal::service('config.storage');
$config_storage
->write($config_name, $source
->read($config_name));
}