Currently classes are added using the hook_preprocess_paragarph and this causes problems when using Display Suite on paragraphs.
hook_preprocess_paragarphs is only implemented when the paragraph template is used but it's completely skipped if you use Display Suite on paragraphs.
Move the logic for adding classes to hook_entity_view_alter which is higher up the stack.
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | hook_entity_view-2806605-2.patch | 2.45 KB | ivan zugec |
Comments
Comment #2
ivan zugec commentedComment #3
ivan zugec commentedComment #5
ivan zugec commentedComment #7
abaier commentedHey Ivan,
does this fix the problems with paragraphs overridden with display suite layouts? Would be great to have this feature.
Thanks for your help!
Comment #8
hog commentedThis feature doesn't work with the Display suite.