You are here

function opigno_certificate_update_80021 in Opigno certificate 8

Allow to add background image to WYSIWYG Certificate with CKEditor.

File

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

Code

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