Please replace deprecated t() with $this->t() and DI usage.

FILE: ...r/drupal/pareviewsh/pareview_temp/src/YoutubechannelSettingsForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 11 WARNINGS AFFECTING 11 LINES
--------------------------------------------------------------------------
  75 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
  81 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
  85 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
  90 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
  94 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
  99 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
 103 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
 108 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
 112 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
 117 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
 121 | WARNING | t() calls should be avoided in classes, use dependency
     |         | injection and $this->t() instead
--------------------------------------------------------------------------
CommentFileSizeAuthor
#2 3073769-2.patch2.97 KBvuil
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

ilchovuchkov created an issue. See original summary.

vuil’s picture

FileSize
2.97 KB
vuil’s picture

Status: Active » Needs review
NitinSP’s picture

Tested above patch & working fine. Thanks vuil.

NitinSP’s picture

Status: Needs review » Reviewed & tested by the community
NitinSP’s picture

Tested above patch & working fine. Thanks vuil.

vuil’s picture

Issue tags: +Drupal 9 compatibility
i-trokhanenko’s picture

Version: 8.x-2.x-dev » 8.x-3.x-dev

  • i-trokhanenko committed c079e42 on 8.x-3.x authored by vuil
    Issue #3073769 by vuil: Replace deprecated t() with $this->t() and DI...
i-trokhanenko’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

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