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
-----------------------------------------------------------------------------------------------------------------------------------------

Command icon 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

akshay.kelotra created an issue. See original summary.

akshay.kelotra’s picture

Assigned: akshay.kelotra » Unassigned
Category: Task » Bug report
Status: Active » Needs review
StatusFileSize
new5.07 KB

I have fixed this issue and providing a patch.

urvashi_vora’s picture

Assigned: Unassigned » urvashi_vora

Hi,

I will review this.

urvashi_vora’s picture

Hi,

I reviewed the patch, here is the output.

urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib/translatable_config_pages-3312006$ git apply -v drupal-standard-practice-3312006-2.patch
Checking patch src/Commands/TranslatableConfigPagesCommands.php...
Checking patch src/Form/TranslatableConfigPagesTypeForm.php...
Checking patch src/TranslatableConfigPagesAccessControlHandler.php...
Checking patch src/TranslatableConfigPagesTypeListBuilder.php...
Applied patch src/Commands/TranslatableConfigPagesCommands.php cleanly.
Applied patch src/Form/TranslatableConfigPagesTypeForm.php cleanly.
Applied patch src/TranslatableConfigPagesAccessControlHandler.php cleanly.
Applied patch src/TranslatableConfigPagesTypeListBuilder.php cleanly.
urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib/translatable_config_pages-3312006
urvasi@urvasi-Inspiron-15-3552:/var/www/html/contribution/d8_cont/web/modules/contrib$
urvashi_vora’s picture

Assigned: urvashi_vora » Unassigned
Status: Needs review » Reviewed & tested by the community

The patch applied cleanly and no issues are found for Drupal Practice standard.

Hence, moving it to RTBC.

luigisa’s picture

Hi @akshay.kelotra

I have made some changes to your contribution.

Thank you

https://git.drupalcode.org/project/translatable_config_pages/-/commit/f0...

luigisa’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.