Replace the t() calls to $this->t() in classes.

Created on 27 June 2023, 12 months ago
Updated 28 June 2023, 12 months ago

Problem/Motivation

t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead.

Steps to reproduce

Remove t() and add $this->t().

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇮🇳India Harshita mehra

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

Comments & Activities

Production build 0.69.0 2024