t() calls should be avoided in classes

Created on 20 April 2020, about 4 years ago
Updated 11 March 2023, over 1 year ago

FILE: ...dules/contrib/contact_storage_export/src/Form/ContactStorageExportForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 9 WARNINGS AFFECTING 9 LINES
--------------------------------------------------------------------------------
67 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
81 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
96 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
100 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
112 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
156 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
165 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
182 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
247 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India mo_farhaz Bangalore

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024