function _opigno_lms_apply_delete in Opigno LMS 3.x
Configs remove helper function.
3 calls to _opigno_lms_apply_delete()
- opigno_lms_update_9001 in ./
opigno_lms.install - Uninstall redundant modules.
- opigno_lms_update_9005 in ./
opigno_lms.install - Import updated configs.
- opigno_lms_update_9006 in ./
opigno_lms.install - Remove the platon block and deprecated dashboard.
File
- ./
opigno_lms.install, line 329 - Install, update and uninstall functions for the "opigno_lms" installation profile.
Code
function _opigno_lms_apply_delete($configs) {
$config_factory = \Drupal::configFactory();
/** @var StorageInterface $config_storage */
$config_storage = \Drupal::service('config.storage');
foreach ($configs as $config) {
$config_factory
->getEditable($config)
->delete();
$config_storage
->delete($config);
}
}