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.
The hook was temporary, and for the next release we need to replace it with conditions + an event.
Just like payment gateways have conditions + a FilterPaymentGatewaysEvent.
Comment | File | Size | Author |
---|---|---|---|
#2 | alter_hook_replaced_by_event-2898137-2.patch | 9.81 KB | tilenav |
Comments
Comment #2
tilenav CreditAttribution: tilenav at Agiledrop - Your Trusted Drupal Teammates commentedThis patch contains replacement of hook by event and test for filtering shipping methods.
Comment #3
tilenav CreditAttribution: tilenav at Agiledrop - Your Trusted Drupal Teammates commentedCreated a pull request on github repo: https://github.com/drupalcommerce/commerce_shipping/pull/2
Comment #4
maaty388 CreditAttribution: maaty388 commentedI tested the patch and it applies perfectly
Comment #6
bojanz CreditAttribution: bojanz at Centarro commentedThanks! Tweaked and committed.