Replace t() with $this->t() for Drupal 8+ version

Created on 25 August 2023, over 1 year ago
Updated 17 September 2023, over 1 year ago

Problem/Motivation

In UserCsvImportForm.php still uses t() - Procedural code, this should be replaced to $this->t().

OOP Code

Use $this->t().

If you extend a drupal base class like a controller, form or a plugin the t() function is provided as class method $this->t() out of the box and you should use it.

📌 Task
Status

Fixed

Version

2.0

Component

Code

Created by

🇺🇦Ukraine ruslan piskarov Kyiv, Ukraine

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

Comments & Activities

Production build 0.71.5 2024