You are here

function opigno_module_update_8025 in Opigno module 8

Update Slide activity type display mode.

File

./opigno_module.install, line 1403
Opigno module app install/update functionality.

Code

function opigno_module_update_8025() {
  $config_path = drupal_get_path('module', 'opigno_module') . '/config/optional';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('core.entity_view_display.opigno_activity.opigno_slide.activity');
  $config_storage
    ->write('core.entity_view_display.opigno_activity.opigno_slide.activity', $data);
}