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
Create patch- Review/RTBC
- Commit
User interface changes
None
API changes
None
Data model changes
None
| Comment | File | Size | Author |
|---|---|---|---|
| #2 | commerce_rave-fixed_t-3028054-2.patch | 770 bytes | i-trokhanenko |
Comments
Comment #2
i-trokhanenkoPlease review.
Comment #3
elijahoyekunle commentedHi @i-trokhanenko, thanks for working on this.
Comment #4
elijahoyekunle commentedComment #5
elijahoyekunle commented