diff --git a/uw_cfg_common.module b/uw_cfg_common.module index e1e447c25f5282bdee1c1f343a071cf97aac923c..b63253a8d0bffef571734df59f45a46a7e884107 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -192,6 +192,15 @@ function uw_cfg_common_form_webform_admin_config_submissions_form_alter(array &$ $form['views_settings']['#access'] = FALSE; } +/** + * Implements hook_form_FORM_ID_alter(). + * + * Remove wrapper attributes in admin/structure/webform/manage/{webform_id}. + */ +function uw_cfg_common_form_webform_ui_element_form_alter(array &$form, FormStateInterface $form_state, string $form_id): void { + $form['properties']['wrapper_attributes']['#access'] = FALSE; +} + /** * Implements hook_form_FORM_ID_alter(). *