You are here

function opigno_course_update_8008 in Opigno course 8

Implements hook_update_N().

Change image style for display default.

File

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

Code

function opigno_course_update_8008() {

  // Install configs from optional folder.
  $config_optional_path = drupal_get_path('module', 'opigno_course') . '/config/optional';
  $storage = new FileStorage($config_optional_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('core.entity_view_display.group.opigno_course.default');
  $config_storage
    ->write('core.entity_view_display.group.opigno_course.default', $data);
}