You are here

function opigno_course_update_8007 in Opigno course 8

Reload Course Media Entity Browser config to fix translations.

File

./opigno_course.install, line 176
Install, update and uninstall functions for the Opigno Course module.

Code

function opigno_course_update_8007() {
  $config_path = drupal_get_path('module', 'opigno_course') . '/config/optional';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('entity_browser.browser.media_entity_browser_badge_images');
  $config_storage
    ->write('entity_browser.browser.media_entity_browser_badge_images', $data);
}