Score:0

Replace E-Mails in Webform 8 when dumping to test stage

ng flag

We sanititze our dumps from production to test so that no newsletter subscriptions, form submissions or ohter things get into the test environement and bad things happen :D

Is there a simple way to get the E-Mails configured in webforms automatically replaced too?
As the number of forms and drupal sites will grow (100+), its a bit hard to handle with drush or sql.

Score:2
de flag

This link covers drush sql:sanitize, including how to extend it with your own custom sanitizations: https://www.hashbangcode.com/article/drupal-9-sanitising-data-drush

ng flag
A good point. Already use drush sql:sanitize. Have to check out how to extend it and replace the e-mails in the config blobs.
mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.