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.
Problem/Motivation
In order to make the module work with the latest core, the Payment content entity needs to use the trait.
Proposed resolution
Add use statement for the trait and adapt methods in entity class
Comment | File | Size | Author |
---|---|---|---|
#6 | use-entitychangedtrait-2581033-6.patch | 1002 bytes | Berdir |
#3 | use-entitychangedtrait-2581033-3.patch | 667 bytes | s_leu |
Comments
Comment #2
s_leu CreditAttribution: s_leu at MD Systems GmbH commentedComment #3
s_leu CreditAttribution: s_leu at MD Systems GmbH commentedSupplying a corresponding patch which worked for me.
Comment #4
BerdirThere's a new method that is required from the EntityChangedInterface, this covers that.
Comment #5
Berdiruse is missing for that.
Comment #6
BerdirComment #7
XanoPlease file this as a pull request on https://github.com/bartfeenstra/drupal-payment. We cannot work on patches here anymore, because we require a more flexible testing infrastructure than the one drupal.org provides.
Comment #8
BerdirWithout this and #2574587: Use of setStringTranslation on TranslationWrapper is causing fatal error committed, payment is completely dead on RC1. Both fix early fatal errors, we don't need tests to confirm that they at least improve the situation. Both are easy fixes, let's just get them committed? We can then look into additional test fails and so on in pull requests.
Btw, tests in PR are currently broken as well, i tried to make a PR with those two patches in https://github.com/bartfeenstra/drupal-payment/pull/1. So, it really doesn't make a difference at the moment :)
Comment #9
XanoFixed on Github.