t() calls should be avoided in classes

Created on 24 February 2023, over 1 year ago
Updated 18 May 2023, about 1 year ago

Problem/Motivation

FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/search404/src/Controller/Search404Controller.php

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


FILE: /var/www/html/drupal_9.4/drupal/web/modules/contrib/search404/src/Form/Search404Settings.php

------------------------------------------------------------------------------------------------------------------------------------------
  45 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
  46 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
 228 | WARNING | t() calls should be avoided in classes, use \Drupal\Core\StringTranslation\StringTranslationTrait and $this->t() instead
------------------------------------------------------------------------------------------------------------------------------------------


📌 Task
Status

Closed: cannot reproduce

Version

2.0

Component

Code

Created by

🇮🇳India Rohit Rana

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

Comments & Activities

Production build 0.69.0 2024