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.
In at_core/templates/content/paragraph.html.twig
, and subsequently any generated template, the paragraph type class is paragraph--type-[type]
. The example for image type is what I would expect though, paragraph--type--image
.
A similar issue happens with the view mode. Here the documentation is correct as is the example, but the actual class being generated needed to be fixed.
Comment | File | Size | Author |
---|---|---|---|
#3 | paragraph_class_fix-2959673-3.patch | 1.91 KB | RedEight |
Comments
Comment #2
RedEight CreditAttribution: RedEight at 95Visual commentedHere's the patch.
Comment #3
RedEight CreditAttribution: RedEight at 95Visual commentedI actually found some other inconsistencies in the documentation. Updated accordingly.
Comment #4
vuilComment #5
mattbloomfield CreditAttribution: mattbloomfield as a volunteer commentedThis has been committed and will find its way into a new release soon.