Skip to content

Commit

Permalink
Use frontend module/content element type as CSS class again
Browse files Browse the repository at this point in the history
  • Loading branch information
veronikaplenta committed May 8, 2024
1 parent 2bea527 commit c5c89cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ protected function addDefaultDataToTemplate(FragmentTemplate $template, array $m
if ($this->isLegacyTemplate($template->getName())) {
// Legacy fragments
$this->addHeadlineToTemplate($template, $modelData['headline'] ?? null);
$this->addCssAttributesToTemplate($template, $template->getName(), $modelData['cssID'] ?? null, $classes);
$this->addCssAttributesToTemplate($template, 'ce_'.$this->getType(), $modelData['cssID'] ?? null, $classes);
$this->addPropertiesToTemplate($template, $properties);
$this->addSectionToTemplate($template, $section);

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ protected function addDefaultDataToTemplate(FragmentTemplate $template, array $m
if ($this->isLegacyTemplate($template->getName())) {
// Legacy fragments
$this->addHeadlineToTemplate($template, $modelData['headline'] ?? null);
$this->addCssAttributesToTemplate($template, $template->getName(), $modelData['cssID'] ?? null, $classes);
$this->addCssAttributesToTemplate($template, 'mod_'.$this->getType(), $modelData['cssID'] ?? null, $classes);
$this->addPropertiesToTemplate($template, $properties);
$this->addSectionToTemplate($template, $section);

Expand Down

0 comments on commit c5c89cc

Please sign in to comment.