You are here

public function OrderItemInterface::usesLegacyAdjustments in Commerce Core 8.2

Gets whether the order item uses legacy adjustments.

Indicates that the adjustments were calculated based on the unit price, which was the default logic prior to Commerce 2.8, changed in #2980713.

Return value

bool TRUE if the order item uses legacy adjustments, FALSE otherwise.

1 method overrides OrderItemInterface::usesLegacyAdjustments()
OrderItem::usesLegacyAdjustments in modules/order/src/Entity/OrderItem.php
Gets whether the order item uses legacy adjustments.

File

modules/order/src/Entity/OrderItemInterface.php, line 138

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function usesLegacyAdjustments();