FILE: ...bution/web/modules/contrib/domain_language/src/Form/DomainLanguageForm.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
--------------------------------------------------------------------------------
52 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
68 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
70 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
83 | WARNING | \Drupal calls should be avoided in classes, use dependency
| | injection instead
88 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
89 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
102 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
105 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
FILE: .../modules/contrib/protected_file/tests/src/Functional/ProtectedFileTest.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
125 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
--------------------------------------------------------------------------------
FILE: ...ules/contrib/protected_file/tests/src/Functional/ProtectedFileTestBase.php
--------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
--------------------------------------------------------------------------------
192 | WARNING | t() calls should be avoided in classes, use
| | \Drupal\Core\StringTranslation\StringTranslationTrait and
| | $this->t() instead
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | 3135692-2.patch | 2.11 KB | mo_farhaz |
Comments
Comment #2
mo_farhaz commentedplease review.
Comment #3
dimr commentedTried #2 patch and it works perfectly fine, thanks!
Comment #4
rajeshreeputraWe have made the 2.0.x-dev release compatible with Drupal 9. applied the above patch as well.
use composer require 'drupal/domain_language:2.0.x-dev@dev'
A new stable release to follow shortly.