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.
Another spinoff from #3096883: [Backwards Compatibility break] Rework and expand ShippingRate. We currently have a @todo in ShippingRateWidget:
// @todo This should be done by selectRate() but the plugin doesn't
// have access to the parent entity ID yet.
$shipment->setShippingMethodId($shipping_method_id);
We want the plugin to have $this->parentEntity which can be passed down (to the ShippingRate, etc).
Comment | File | Size | Author |
---|---|---|---|
#2 | 3106420-2-parent.patch | 5.18 KB | bojanz |
|
Comments
Comment #2
bojanz CreditAttribution: bojanz at Centarro commentedHere we go.
Ideally Commerce would give us ParentEntityAwareInterface, but we can fix that in a followup without breaking BC.
Comment #4
bojanz CreditAttribution: bojanz at Centarro commentedCommitted.