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

Created on 2 February 2023, over 1 year ago
Updated 21 February 2023, over 1 year 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 15 hours ago

Created by

🇳🇿New Zealand quietone New Zealand

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.69.0 2024