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.
t()
calls should be avoided in classes, use DI and $this->t()
instead:
FILE: ...0000/site1101/web/vendor/drupal/pareviewsh/pareview_temp/src/Api.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
--------------------------------------------------------------------------
122 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
138 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
171 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------
FILE: ...ite1101/web/vendor/drupal/pareviewsh/pareview_temp/instapage.install
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------
27 | WARNING | Messages are user facing text and must run through t()
| | for translation
--------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#8 | 3071364-8.patch | 1.4 KB | bcizej |
#3 | 3071364-3.patch | 2.14 KB | vuil |
Comments
Comment #2
vuilComment #3
vuilComment #4
vuilComment #5
peterkokot CreditAttribution: peterkokot as a volunteer and at Agiledrop - Your Trusted Drupal Teammates commentedPatch 3071364-3.patch works great. Thank you.
Comment #6
vuilComment #8
bcizej CreditAttribution: bcizej at Agiledrop - Your Trusted Drupal Teammates commentedRerolled patch and commited, thanks.