Problem/Motivation

t() calls should be avoided in classes, use this->t() instead

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.

FILE: \modules\contrib\data8\src\Form\Data8SettingsForm.php
------------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 8 WARNINGS AFFECTING 8 LINES
------------------------------------------------------------------------------------------------------------------------------------------
  31 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  56 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  65 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  74 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  83 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 101 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 134 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
---------------------------------------------------------------------------------------
CommentFileSizeAuthor
#2 3361462-2.patch3.99 KBshanu chouhan

Issue fork data8-3361462

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

    Shanu Chouhan created an issue. See original summary.

    shanu chouhan’s picture

    Assigned: shanu chouhan » Unassigned
    Status: Active » Needs review
    StatusFileSize
    new3.99 KB

    I have Created a patch to fix this issue.

    Liam_Hunt’s picture

    Thank you, I have addressed the issue and made the suggested changes.

    Liam_Hunt’s picture

    Status: Needs review » Fixed
    Liam_Hunt’s picture

    Status: Fixed » Closed (fixed)