t() calls should be avoided in classes

Created on 11 May 2023, over 1 year ago
Updated 18 May 2023, over 1 year ago

Problem/Motivation

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

Steps to reproduce

Run the command:

phpcs --standard=DrupalPractice
/web/modules/contrib/multi_image_formatter/

Proposed resolution

Fix the following coding standards issues and upload the patch or create an MR with fixes.
FILE:\modules\contrib\serhii_morozov-3359305\src\ProductBreadcrumbBuilder.php
-----------------------------------------------------------------------------------------------------------------------------------------
FOUND 0 ERRORS AND 1 WARNING AFFECTING 1 LINE
-----------------------------------------------------------------------------------------------------------------------------------------
99 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
-----------------------------------------------------------------------------------------------------------------------------------------

Remaining tasks

User interface changes

API changes

Data model changes

๐Ÿ“Œ Task
Status

Fixed

Component

Code

Created by

๐Ÿ‡ฎ๐Ÿ‡ณIndia Shanu Chouhan

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024