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

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

s_leu created an issue. See original summary.

s_leu’s picture

Title: User EntityChangedTrait » Use EntityChangedTrait
s_leu’s picture

Supplying a corresponding patch which worked for me.

Berdir’s picture

Status: Needs review » Reviewed & tested by the community

There's a new method that is required from the EntityChangedInterface, this covers that.

Berdir’s picture

Status: Reviewed & tested by the community » Needs work

use is missing for that.

Berdir’s picture

Xano’s picture

Please 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.

Berdir’s picture

Without 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 :)

Xano’s picture

Status: Needs review » Fixed

Fixed on Github.

  • Berdir committed d783730 on 8.x-2.x authored by s_leu
    Issue #2581033 by s_leu: Use EntityChangedTrait
    

Status: Fixed » Closed (fixed)

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