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.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | commerce_addressbook-theme_links-1774086-1.patch | 2.28 KB | cmaddalozzo |
Comments
Comment #1
cmaddalozzo CreditAttribution: cmaddalozzo commentedI've attached a patch with the refactored code.
Comment #2
cmaddalozzo CreditAttribution: cmaddalozzo commentedComment #3
jsacksick CreditAttribution: jsacksick commentedCommitted thanks !