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.
Problem/Motivation
In the module settings form is used the t()
function when should be used like this $this->t()
.
Read more about this at: Best practice: $this->t() versus t().
Proposed resolution
Change the t()
calls for $this->t()
as per new coding standard for translation.
Read more at Translation API overview.
Remaining tasks
None.
User interface changes
None.
API changes
None.
Data model changes
None.
Comment | File | Size | Author |
---|---|---|---|
#2 | 2872550-2.patch | 2.07 KB | Pavan B S |
Comments
Comment #2
Pavan B S CreditAttribution: Pavan B S at Valuebound commentedApplying the patch, please review.
Comment #4
adriancidComment #5
adriancidThanks @Pavan B S, nice catch!