Problem/Motivation

Not best practice to use the procedural t() in OOP Code.
File: commerce_rave/src/Plugin/Commerce/PaymentGateway/Rave.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
new770 bytes

Please review.

elijahoyekunle’s picture

Status: Needs review » Reviewed & tested by the community

Hi @i-trokhanenko, thanks for working on this.

elijahoyekunle’s picture

Status: Reviewed & tested by the community » Fixed
elijahoyekunle’s picture

Status: Fixed » Closed (fixed)