You are here

public function EntityAdjustableInterface::setAdjustments in Commerce Core 8.2

Sets the adjustments.

Parameters

\Drupal\commerce_order\Adjustment[] $adjustments: The adjustments.

Return value

$this

2 methods override EntityAdjustableInterface::setAdjustments()
Order::setAdjustments in modules/order/src/Entity/Order.php
Sets the adjustments.
OrderItem::setAdjustments in modules/order/src/Entity/OrderItem.php
Sets the adjustments.

File

modules/order/src/EntityAdjustableInterface.php, line 48

Class

EntityAdjustableInterface
Defines an interface for objects that contain adjustments.

Namespace

Drupal\commerce_order

Code

public function setAdjustments(array $adjustments);