- π¦πΊAustralia elgandoz Canberra
The above example is almost right but there's a typo. It should be:
plugin_id ? 'block--' ~ plugin_id|replace({"_": "-", ":": "--"})|clean_class,
This should really be fixed in the main theme since all the layout builder blocks do not print any class. - π©πͺGermany marcoka
Update with drupal 10.2 and Radix 5.0.11
This code will ad all classes in a second class tag.
{% if html_tag %} <{{ html_tag }}{{ attributes|without('id').addClass(classes)}}{{ attributes.setAttribute('id', clean_id) }}> {% endif %}
Correct code:
{% if html_tag %} <{{ html_tag }} {{ attributes|without('id').addClass(classes).setAttribute('id', clean_id) }}> {% endif %}
- Status changed to Closed: outdated
5 months ago 7:29am 21 June 2024