Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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 CreditAttribution: Ivan Zugec at WebWash commentedComment #3
Ivan Zugec CreditAttribution: Ivan Zugec at WebWash commentedComment #5
Ivan Zugec CreditAttribution: Ivan Zugec at WebWash commentedComment #7
ABaier CreditAttribution: 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 CreditAttribution: HOG at Skilld, Drupal Ukraine Community commentedThis feature doesn't work with the Display suite.