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 dependency injection and $this->t()
instead.
FILE: ...areviewsh/pareview_temp/wordpress_migrate_ui/src/Form/AuthorForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
37 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------
FILE: ...areviewsh/pareview_temp/wordpress_migrate_ui/src/Form/ReviewForm.php
--------------------------------------------------------------------------
FOUND 0 ERRORS AND 2 WARNINGS AFFECTING 2 LINES
--------------------------------------------------------------------------
34 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
40 | WARNING | t() calls should be avoided in classes, use dependency
| | injection and $this->t() instead
--------------------------------------------------------------------------
Comment | File | Size | Author |
---|---|---|---|
#2 | 3072109-2.patch | 2.15 KB | vuil |
Comments
Comment #2
vuilComment #3
vuilComment #5
HongPong CreditAttribution: HongPong commentedGreat, thanks so much vuil! :)
Comment #6
vuil