Fix Controllers without trait in non tests for 'DrupalPractice.Objects.GlobalFunction'

Created on 2 February 2023, almost 2 years ago
Updated 21 February 2023, almost 2 years ago

Problem/Motivation

Fix the t() function in Controllers that do not have the StringTranslationTrait.

Steps to reproduce

Proposed resolution

Fix Controllers in non tests that do not have the StringTranslationTrait for the sniff 'DrupalPractice.Objects.GlobalFunction.GlobalFunction'
That should be these files

  • core/modules/system/src/Controller/SystemInfoController.php
  • core/modules/file/src/Controller/FileWidgetAjaxController.php
  • core/modules/config/src/Controller/ConfigController.php

Remaining tasks

Update patch in accord with the new scope
review
commit

User interface changes

API changes

Data model changes

Release notes snippet

📌 Task
Status

Fixed

Version

10.1

Component
Other 

Last updated about 1 hour ago

Created by

🇳🇿New Zealand quietone

Live updates comments and jobs are added and updated live.
  • Coding standards

    It involves compliance with, or the content of coding standards. Requires broad community agreement.

Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024