You are here

function opigno_ilt_update_9001 in Opigno Instructor-led Trainings 3.x

Update display view.

File

./opigno_ilt.install, line 51
Install, update and uninstall functions for the Opigno ILT module.

Code

function opigno_ilt_update_9001() {
  $config_path = drupal_get_path('module', 'opigno_ilt') . '/config/install';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('core.entity_view_display.opigno_calendar_event.ilt_calendar_event.default');
  $config_storage
    ->write('core.entity_view_display.opigno_calendar_event.ilt_calendar_event.default', $data);
}