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.
We should make the commerce coupon entity use a subclass of the Entity class as it's entity class.
It's how the Drupal 8 entity system is going to work (lets use the coding standard of tomorrow), and it will give a lot of handy methods on the loaded coupons, like basic CRUD and more.
Comments
Comment #1
pcambraI don't think we're doing big structural changes at all at this point in the 1.x branch... check commerce discount module, that this one will use as base for the 2.x branch