You are here

function opigno_certificate_update_8002 in Opigno certificate 8

Allow to edit WYSIWYG Certificate with CKEditor.

File

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

Code

function opigno_certificate_update_8002() {
  $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);
}