Created
December 24, 2021 04:21
-
-
Save mstrelan/7c0fde1c077b765aae9f8b5a38458089 to your computer and use it in GitHub Desktop.
Taming webform configuration
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Disable promotion on /admin/structure/webform. | |
$config['webform.settings']['ui']['promotions_disabled'] = TRUE; | |
// Disable requirements warnings all over /admin/reports/status. | |
$config['webform.settings']['requirements']['cdn'] = FALSE; | |
$config['webform.settings']['requirements']['spam'] = FALSE; | |
// Disable misc clutter / weirdness. | |
$config['webform.settings']['ui']['video_display'] = 'hidden'; | |
$config['webform.settings']['ui']['description_help'] = FALSE; | |
$config['webform.settings']['ui']['help_disabled'] = TRUE; | |
$config['webform.settings']['ui']['support_disabled'] = TRUE; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
# drush php:script webform-state.php | |
\Drupal::state()->set('webform.element.message', [ | |
'webform.help.installation' => TRUE, | |
]); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment