You are here

function opigno_learning_path_update_8030 in Opigno Learning path 8

Implements hook_update_N().

Change image style for display default.

File

./opigno_learning_path.install, line 846
Install, update and uninstall functions for the module.

Code

function opigno_learning_path_update_8030() {

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