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.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

cmaddalozzo’s picture

I've attached a patch with the refactored code.

cmaddalozzo’s picture

Status: Active » Needs review
jsacksick’s picture

Status: Needs review » Fixed

Committed thanks !

Status: Fixed » Closed (fixed)

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