diff --git a/uw_cfg_common.module b/uw_cfg_common.module index 7c4575c5eb82fc28d85e5d4bd38a82a9f2ac2c70..dcf4989998145089027c350a032fafa456205093 100644 --- a/uw_cfg_common.module +++ b/uw_cfg_common.module @@ -178,11 +178,8 @@ function uw_cfg_common_entity_presave(EntityInterface $entity) { * Remove the None option from layout builder styles. */ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form, FormStateInterface $form_state, string $form_id): void { - // Remove the None option from layout builder styles. - unset($form['layout_builder_style']['#empty_option']); - // Ensuring that the contained width is selected by default. - $form['layout_builder_style']['#default_value'] = $form['layout_builder_style']['#default_value'] ?: 'uw_lbs_contained_width'; + $form['layout_builder_style_default']['#default_value']['uw_lbs_contained_width'] = 'uw_lbs_contained_width'; } /**