Problem/Motivation

Not best practice to use the procedural t() in OOP Code.
File: adminimal_admin_toolbar/src/Form/SettingsForm.php
See:
https://www.drupal.org/docs/8/api/translation-api/overview
https://api.drupal.org/api/drupal/core%21includes%21bootstrap.inc/function/t/8.6.x

Proposed resolution

Use $this->t();

Remaining tasks

  1. Create patch
  2. Review/RTBC
  3. Commit

User interface changes

None

API changes

None

Data model changes

None

Comments

i-trokhanenko created an issue. See original summary.

i-trokhanenko’s picture

Assigned: i-trokhanenko » Unassigned
Issue summary: View changes
Status: Active » Needs review
StatusFileSize
new685 bytes
energee’s picture

Status: Needs review » Reviewed & tested by the community

  • energee committed 2945c29 on 8.x-1.x authored by i-trokhanenko
    Issue #3027760 by i-trokhanenko: Use $this->t() instead of t() in form
    
energee’s picture

Status: Reviewed & tested by the community » Fixed
i-trokhanenko’s picture

Issue summary: View changes

thanks @energee

energee’s picture

:)

Status: Fixed » Closed (fixed)

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