You are here

function opigno_calendar_update_8003 in Opigno calendar 8

Adding Datepicker date format.

File

./opigno_calendar.install, line 84
Install, update and uninstall functions for the Opigno Calendar module.

Code

function opigno_calendar_update_8003() {
  $config_path = drupal_get_path('module', 'opigno_calendar') . '/config/install';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('core.date_format.datepicker');
  $config_storage
    ->write('core.date_format.datepicker', $data);
}