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.
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
--------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#2 | 3073769-2.patch | 2.97 KB | vuil |
Comments
Comment #2
vuilComment #3
vuilComment #4
NitinSP CreditAttribution: NitinSP at Cognizant Technology Solutions commentedTested above patch & working fine. Thanks vuil.
Comment #5
NitinSP CreditAttribution: NitinSP at Cognizant Technology Solutions commentedComment #6
NitinSP CreditAttribution: NitinSP at Cognizant Technology Solutions commentedTested above patch & working fine. Thanks vuil.
Comment #7
vuilComment #8
i-trokhanenkoComment #10
i-trokhanenko