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.
By bojanz on
Change record status:
Published (View all published change records)
Project:
Introduced in branch:
8.x-2.x
Introduced in version:
8.x-2.0-rc2
Issue links:
Description:
Changed methods:
Old method | New method |
---|---|
addUsage($order, $promotion, $coupon = NULL) | register($order, $promotion, $coupon = NULL) |
deleteUsage(array $promotions) | delete(array $promotions) |
getUsage($promotion, $coupon = NULL, $email = NULL) | load($promotion, $mail = NULL) |
getUsageMultiple($promotions, $coupons = [], $mail = NULL) | loadMultiple($promotions, $mail = NULL) |
New methods:
- deleteByCoupon(array $coupons)
- loadByCoupon($coupon, $mail = NULL)
- loadMultipleByCoupon(array $coupons, $mail = NULL)
Impacts:
Module developers