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.
As per the coding standard , t() calls should be avoided in classes, use dependency injection and $this->t() instead , removed the used class import and fixed the one blank line issue after function.
Comment | File | Size | Author |
---|---|---|---|
#2 | coding-standard-2837496-02.patch | 11.97 KB | harsha012 |
|
Comments
Comment #2
harsha012 CreditAttribution: harsha012 as a volunteer and at Red Crackle commentedAdded patch
Comment #3
harsha012 CreditAttribution: harsha012 as a volunteer and at Red Crackle commentedComment #4
geerlingguy CreditAttribution: geerlingguy commentedLooks great, succinct and to the point! Thanks.
Comment #6
geerlingguy CreditAttribution: geerlingguy commented