Skip to content
Snippets Groups Projects
Commit 15b9b38d authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-5879: fix warning when setting default value

parent aa166bba
No related branches found
No related tags found
1 merge request!285ISTWCMS-5879 Create separator and spacing options for sections
...@@ -246,17 +246,17 @@ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form, ...@@ -246,17 +246,17 @@ function uw_cfg_common_form_layout_builder_configure_section_alter(array &$form,
// Column separator group should not appear one column. // Column separator group should not appear one column.
if (isset($form['layout_builder_style_column_separator'])) { if (isset($form['layout_builder_style_column_separator'])) {
// Ensuring that none is selected for column separator by default. // Ensuring that none is selected for column separator by default.
$form['layout_builder_style_column_separator']['#default_value']['uw_lbs_column_separator_none'] = 'uw_lbs_column_separator_none'; $form['layout_builder_style_column_separator']['#default_value'] = 'uw_lbs_column_separator_none';
} }
// Ensuring that none is selected for section separator by default. // Ensuring that none is selected for section separator by default.
$form['layout_builder_style_section_separator']['#default_value']['uw_lbs_section_separator_none'] = 'uw_lbs_section_separator_none'; $form['layout_builder_style_section_separator']['#default_value'] = 'uw_lbs_section_separator_none';
// Ensuring that default is selected for section spacing by default. // Ensuring that default is selected for section spacing by default.
$form['layout_builder_style_section_spacing']['#default_value']['uw_lbs_section_spacing_default'] = 'uw_lbs_section_spacing_default'; $form['layout_builder_style_section_spacing']['#default_value'] = 'uw_lbs_section_spacing_default';
// Ensuring that the contained width is selected by default. // Ensuring that the contained width is selected by default.
$form['layout_builder_style_default']['#default_value']['uw_lbs_contained_width'] = 'uw_lbs_contained_width'; $form['layout_builder_style_default']['#default_value'] = '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