backdrop-contrib / reference

Defines a field to allow Backdrop entities to reference each other.
GNU General Public License v2.0
4 stars 6 forks source link

reference_link_formatter_view() should return an alterable item instead of #markup #34

Closed jenlampton closed 6 years ago

jenlampton commented 6 years ago

I have a use-case where I need to inject a CSS class into the Reference link in a field.

Link module, for example, provides a renderable array that I can easily alter to inject my class. Reference module provides only a flattened string in #markup. If this were to return an renderable array instead, other modules/themes would be able to do more with it before the link is flattened.