Skip to content
Snippets Groups Projects
Commit 96038b17 authored by rembrandx's avatar rembrandx
Browse files

[#98533] - add classes on Sections for usp & visual

parent 75b1b0d0
No related branches found
No related tags found
No related merge requests found
......@@ -41,6 +41,12 @@ function dropsolid_demo_config_install() {
$layouts = $node->get('layout_builder__layout');
$sections = $layouts->getSections();
if (isset($sections[0]) && $sections[0]->getLayoutId() === 'rs_header') {
$section_configuration = $sections[0]->getLayoutSettings();
$section_configuration['classes'] = $section_configuration['classes'] ?? [];
$section_configuration['classes'] .= " home__section home__section--visual";
$sections[0]->setLayoutSettings($section_configuration);
$component = new SectionComponent($uuidGenerator->generate(), 'content');
$configuration = [
'id' => 'block_content:d679bf78-cdbf-40f9-8859-ca72c1786b19',
......@@ -57,6 +63,12 @@ function dropsolid_demo_config_install() {
}
if (isset($sections[1]) && $sections[1]->getLayoutId() === 'rs_two_col') {
$section_configuration = $sections[1]->getLayoutSettings();
$section_configuration['classes'] = $section_configuration['classes'] ?? [];
$section_configuration['classes'] .= " home__section home__section--usp-info";
$sections[1]->setLayoutSettings($section_configuration);
$component = new SectionComponent($uuidGenerator->generate(), 'first_main');
$configuration = [
'id' => 'block_content:f5d5bfc4-6a03-4756-b7a5-c3ad29da3095',
......
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