function genpass_update_8001 in Generate Password 8
Remove configuration option "genpass_entropy".
File
- ./
genpass.install, line 11 - Updates for the genpass module.
Code
function genpass_update_8001(&$sandbox) {
// Get editable configuration settings for module.
$config_factory = \Drupal::configFactory();
$genpass_configuration = $config_factory
->getEditable('genpass.settings');
// Remove genpass_entropy setting. Altering entropy source is now by hook.
$genpass_configuration
->clear('genpass_entropy');
$genpass_configuration
->save(TRUE);
}