You are here

function opigno_moxtra_update_9001 in Opigno Moxtra 3.x

Changed view configs.

File

./opigno_moxtra.install, line 101
Install, update and uninstall functions for the Opigno Moxtra module.

Code

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