Skip to content
Snippets Groups Projects
Commit fa99ae3f authored by Lily Yan's avatar Lily Yan Committed by Igor Biki
Browse files

ISTWCMS-5686 Refactor to ensure that the contained width is selected by...

ISTWCMS-5686 Refactor to ensure that the contained width is selected by default due to new feature from 2.0.0
parent 00f8899d
No related branches found
No related tags found
1 merge request!266ISTWCMS-5686 Refactor to ensure that the contained width is selected by default due to new feature from 2.0.0
......@@ -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';
}
/**
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment