Skip to content

Commit

Permalink
Include 'paragraphs-item' class for backwards compatibility.
Browse files Browse the repository at this point in the history
Related to #113
  • Loading branch information
laryn committed Dec 7, 2021
1 parent 21b9e02 commit 369b4a9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion theme/paragraphs.theme.inc
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ function template_preprocess_paragraphs_item(&$variables, $hook) {
field_attach_preprocess($paragraphs_item_type, $paragraphs_item, $variables['content'], $variables);

// Gather css classes.
$variables['classes_array'][] = backdrop_html_class('entity-' . $paragraphs_item_type);
$variables['classes_array'][] = backdrop_html_class($paragraphs_item_type);
$variables['classes_array'][] = backdrop_html_class($paragraphs_item_type . '-' . $bundle);
$variables['classes_array'][] = backdrop_html_class('paragraphs-item-' . $bundle);
$variables['classes_array'][] = backdrop_html_class('paragraphs-item-' . $variables['elements']['#view_mode']);
Expand Down

0 comments on commit 369b4a9

Please sign in to comment.