t() calls should be avoided in classes

Created on 20 April 2020, over 4 years ago
Updated 8 February 2023, almost 2 years ago

FILE: ...tml/contribution/web/modules/contrib/optimizely/src/Form/AddUpdateForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 10 WARNINGS AFFECTING 10 LINES
--------------------------------------------------------------------------------
39 | WARNING | Unused variable $intro_message.
54 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
148 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
189 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
236 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
249 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
282 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
291 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
303 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
313 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead

🐛 Bug report
Status

Fixed

Version

4.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.71.5 2024