Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Error: Call to undefined method Drupal\commerce_payment\PaymentOptionsBuilder::t() in Drupal\commerce_payment\PaymentOptionsBuilder->buildOptions() (line 111 of modules/contrib/commerce/modules/payment/src/PaymentOptionsBuilder.php)
Comment | File | Size | Author |
---|---|---|---|
#2 | commerce-2958865-t-2.patch | 706 bytes | czigor |
|
Comments
Comment #2
czigor CreditAttribution: czigor at Centarro commentedComment #3
bojanz CreditAttribution: bojanz at Centarro commentedWe need to inject $string_translation, and add the missing test coverage.
Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedDone.
Comment #6
agoradesign CreditAttribution: agoradesign commentedWhy do you inject the string translation manager, but use the trait then? (btw, it's recommended to use the trait anyway regarding docs)
Comment #7
bojanz CreditAttribution: bojanz at Centarro commentedBecause the trait provides an API not provided by the service:
It's odd, I know.
Comment #8
agoradesign CreditAttribution: agoradesign commentedtrue...wow.. didn't know that