FILE: \core\modules\views\src\DisplayPluginCollection.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
83 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
FILE: core\modules\views\src\Entity\View.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
------------------------------------------------------------------------------------------------------------------------------------------
161 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #3 | 3116099-3.patch | 1.19 KB | neelam_wadhwani |
Comments
Comment #2
neelam_wadhwani commentedComment #3
neelam_wadhwani commentedPlease review patch.
Comment #4
nishantghetiya commented@neelam_wadhwani Hello,
Above provided patch looks good for me. Thanks for your contribution.
Comment #5
cilefen commentedWell, tests have failed. See also #3116169: Some minor bugs for drupal core file module, we don't always fix issues like this one module-by-module.
I have attached the parent issue.
Comment #7
longwaveI am closing this as a duplicate of #3113904: [META] Replace t() calls inside of classes . It is not correct to scope these issues module-by-module and other work is going on in that issue to separate out the tasks in a more manageable way.