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
--------------------------------------------------------------------------
CommentFileSizeAuthor
#8 3071364-8.patch1.4 KBbcizej
#3 3071364-3.patch2.14 KBvuil
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ilchovuchkov created an issue. See original summary.

vuil’s picture

Issue summary: View changes
vuil’s picture

FileSize
2.14 KB
vuil’s picture

Status: Active » Needs review
peterkokot’s picture

Status: Needs review » Reviewed & tested by the community
Issue tags: +ContributionWeekend2020

Patch 3071364-3.patch works great. Thank you.

vuil’s picture

  • benjamincizej committed e998374 on 8.x-2.x authored by vuil
    Issue #3071364 by vuil, peterkokot: t() calls should be avoided in...
bcizej’s picture

Status: Reviewed & tested by the community » Fixed
FileSize
1.4 KB

Rerolled patch and commited, thanks.

Status: Fixed » Closed (fixed)

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