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.
I was leveraging Entity Traits and used the new BundleFieldDefinition class in Entity API; however, Commerce explicitly was pointing to its (effectively deprecated, identical child class) own implementation in the trait manager, which threw a PHP type mismatch error. This PR deprecates the class per the Drupal coding standard, updates the various references in Commerce core, and thus allows/encourages third parties to use the class from Entity module.
Comments
Comment #2
bradjones1https://github.com/drupalcommerce/commerce/pull/828
Comment #3
bojanz CreditAttribution: bojanz at Centarro commentedGood idea!
Comment #4
bradjones1This was expanded to also include
BundlePluginInterface
.Comment #5
bojanz CreditAttribution: bojanz at Centarro commentedComment #7
bojanz CreditAttribution: bojanz at Centarro commentedThanks!