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.
As node and other core entities, it could be useful to have basic classes added into the profile twig template, based on the view mode, the profile type, the profile id, and the isDefault property.
Patch follow
Comment | File | Size | Author |
---|---|---|---|
#4 | 3083013-4.patch | 1.42 KB | flocondetoile |
#2 | 3083013-2.patch | 1.11 KB | flocondetoile |
Comments
Comment #2
flocondetoileComment #3
Martijn de WitReally nice feature patch. Adding the view mode seems to be a nice addition.
One remark. I'm missing an update on the "Available variables:" block in the profile.html.twig. Because you added an extra variable it should be defined there as wel.
Comment #4
flocondetoileHello @Martijn de Wit
You're right. Forgot it.
Patch attached with the variable added in the template comments.
Comment #5
Martijn de WitNice one. Now it is waiting on one of the maintainers I guess :)
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedThanks!