FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\translatable_config_pages\src\Commands\TranslatableConfigPagesCommands.php
-----------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------
60 | WARNING | \Drupal calls should be avoided in classes, use dependency injection instead
-----------------------------------------------------------------------------------------------------------------------------
FILE: C:\xampp\htdocs\drupal95\web\modules\contrib\translatable_config_pages\src\Form\TranslatableConfigPagesTypeForm.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 3 WARNINGS AFFECTING 3 LINES
-----------------------------------------------------------------------------------------------------------------------------------------
91 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
98 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
99 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | drupal-standard-practice-3312006-2.patch | 5.07 KB | akshay.kelotra |
Issue fork translatable_config_pages-3312006
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
akshay.kelotra commentedI have fixed this issue and providing a patch.
Comment #3
urvashi_vora commentedHi,
I will review this.
Comment #4
urvashi_vora commentedHi,
I reviewed the patch, here is the output.
Comment #5
urvashi_vora commentedThe patch applied cleanly and no issues are found for Drupal Practice standard.
Hence, moving it to RTBC.
Comment #7
luigisa commentedHi @akshay.kelotra
I have made some changes to your contribution.
Thank you
https://git.drupalcode.org/project/translatable_config_pages/-/commit/f0...
Comment #8
luigisa commented