function opigno_module_update_8037 in Opigno module 8
Set default not recommended H5P libraries.
File
- ./
opigno_module.install, line 1564 - Opigno module app install/update functionality.
Code
function opigno_module_update_8037() {
$not_recommended = ModuleH5PAdminSettingsForm::disabledByDefault();
$config = \Drupal::service('config.factory')
->getEditable('opigno_module.settings');
$config
->set('disabled_h5p', array_values($not_recommended));
$config
->save();
}