You are here

function opigno_certificate_update_80024 in Opigno certificate 8

Update text format for WYSIWYG Certificate with CKEditor.

File

./opigno_certificate.install, line 111
Install, update and uninstall functions for the Opigno Certificate module.

Code

function opigno_certificate_update_80024() {
  $config_path = drupal_get_path('module', 'opigno_certificate') . '/config/install';
  $storage = new FileStorage($config_path);
  $config_storage = \Drupal::service('config.storage');
  $data = $storage
    ->read('filter.format.opigno_certificate_wysiwyg');
  $config_storage
    ->write('filter.format.opigno_certificate_wysiwyg', $data);
  $data = $storage
    ->read('editor.editor.opigno_certificate_wysiwyg');
  $config_storage
    ->write('editor.editor.opigno_certificate_wysiwyg', $data);
}