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
Currently, the LateOrderProcessor invokes a save on shipments.
This needs to be skipped in certain situations. This adds a method to determine if the save should occur, allowing other modules to decorate the service and override when needed.
Comment | File | Size | Author |
---|---|---|---|
#6 | 3279815-6.patch | 1.56 KB | jsacksick |
#3 | enhance-late-order-processor-3279815-3.patch | 1.34 KB | TomTech |
| |||
#2 | enhance-late-order-processor-3279815-2.patch | 1.03 KB | TomTech |
|
Comments
Comment #2
TomTech CreditAttribution: TomTech commentedComment #3
TomTech CreditAttribution: TomTech commentedChanged
shouldSave()
to accept ShipmentInterface rather than OrderInterface.Comment #4
jsacksick CreditAttribution: jsacksick at Centarro commentedAlmost good! We should make 2 small changes though:
shouldSave()
should be made protected and should basically contain the following:So we only call shouldSave().
Comment #6
jsacksick CreditAttribution: jsacksick at Centarro commentedMade the changes, and committed the patch, attaching it for reference.