Commit a51a35de authored by Liam Morland's avatar Liam Morland
Browse files

ISTWCMS-4881: Update hook to protect all Webforms with Honeypot

parent 152abb77
......@@ -75,3 +75,11 @@ function uw_sites_all_update_8101(&$sandbox) {
function uw_sites_all_update_8102(&$sandbox) {
* Protect all Webforms with Honeypot.
function uw_sites_all_update_8103() {
$config = \Drupal::service('config.factory')->getEditable('webform.settings');
$config->set('third_party_settings.honeypot.honeypot', TRUE)->save();
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment