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.
All drupal core themes contain plugin_id class for blocks in block.html.twig template. My bootstrap subtheme shows only "block clearfix" classes by default . Can we add plugin_id for blocks in base drupal bootstrap theme.
set classes = [
'block',
'clearfix',
'block-' ~ configuration.provider|clean_class,
'block-' ~ plugin_id|clean_class,
]
%}
<section{{ attributes.addClass(classes) }}>
Comment | File | Size | Author |
---|---|---|---|
#2 | bootstrap-add-plugin-id-to-classes-2727367-2.patch | 603 bytes | levmyshkin |
Comments
Comment #2
levmyshkinPatch for this is here:
Comment #3
jorgediazhav CreditAttribution: jorgediazhav at Evolving Web commentedComment #4
jorgediazhav CreditAttribution: jorgediazhav at Evolving Web commentedYou are right, all core themes come with it.
Reviewed. Works fine.
Comment #5
seworthi CreditAttribution: seworthi at Estrella Mountain Community College commentedReviewed, works as expected, patch applies correctly.
Comment #7
markhalliwell