function simple_recaptcha_update_8001 in Simple Google reCAPTCHA 8
Update module configuration and and populate values for new settings.
File
- ./
simple_recaptcha.install, line 11 - Installation hooks for simple_recaptcha module.
Code
function simple_recaptcha_update_8001(&$sandbox) {
\Drupal::configFactory()
->getEditable('simple_recaptcha.config')
->set('recaptcha_type', 'v2')
->set('v3_score', '80')
->save();
}