Replace t() calls in classes

Created on 22 June 2023, over 1 year ago
Updated 22 July 2023, over 1 year ago

Problem/Motivation

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

Steps to reproduce

Used t() in the W3cValidatorSettingsForm.php file at some lines.
Remove it and add $this->t().

📌 Task
Status

Fixed

Version

1.0

Component

Code

Created by

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

Comments & Activities

Production build 0.71.5 2024