Problem/Motivation

Classes that need to translate string should use the string_translation service instead of t().

Proposed resolution

Inject the string_translation service where necessary.

Issue fork seven-3576707

Command icon Show commands

Start within a Git clone of the project using the version control instructions.

Or, if you do not have SSH keys set up on git.drupalcode.org:

Comments

avpaderno created an issue. See original summary.

avpaderno’s picture

Status: Active » Needs review

  • avpaderno committed c0d8cfff on 2.0.x
    Issue #3576707: Inject the string_translation service in hook classes
    

  • avpaderno committed 035f4ac9 on main
    Issue #3576707: Inject the string_translation service in hook classes
    
avpaderno’s picture

Status: Needs review » Fixed

Now that this issue is closed, review the contribution record.

As a contributor, attribute any organization that helped you, or if you volunteered your own time.

Maintainers, credit people who helped resolve this issue.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.