Commerce OO
Categories
Component ID
2489194
Component name
Commerce OO
Component type
module
Maintenance status
Development status
Component security advisory coverage
not-covered
Component created
Component changed
Component body
This is a WIP for some object-oriented classes that wrap Drupal Commerce entities such as Order, LineItem and Product. They're designed to be simple and light weight and offer a few benefits:
- Makes testing your own code that relies on Commerce entities much easier.
- Simplifies getters/setters rather than using field api and entity_metadata_wrapper functions.
- Allows you a base to extend if you want to enforce specific actions or rules on the entity.
