Still on Drupal 7? Security support for Drupal 7 ended on 5 January 2025. Please visit our Drupal 7 End of Life resources page to review all of your options.FILE: /var/www/html/drupal-contrib/modules/contrib/mosaicformatter/src/Plugin/Field/FieldFormatter/MosaicFormatter.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 6 WARNINGS AFFECTING 6 LINES
------------------------------------------------------------------------------------------------------------------------------------------
122 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
125 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
264 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
267 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
312 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
331 | WARNING | File::load calls should be avoided in classes, use dependency injection instead
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3117604-3.patch | 4.88 KB | prabha1997 |
Comments
Comment #2
prabha1997 commentedI am working in this issue
Comment #3
prabha1997 commentedKindly Review patch
Comment #4
vitch commentedComment #5
vitch commented