Instead of explicitly calling the l function and setting the #markup property we should be employing the link theme function. This allows developers to modify the link output, including changing the link text and adding additional attributes.

Comments

I've attached a patch with the refactored code.

Status:Active» Needs review

Status:Needs review» Fixed

Committed thanks !

Status:Fixed» Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.