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.
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.