public function OrderItem::setAdjustments in Commerce Core 8.2
Sets the adjustments.
Parameters
\Drupal\commerce_order\Adjustment[] $adjustments: The adjustments.
Return value
$this
Overrides EntityAdjustableInterface::setAdjustments
File
- modules/
order/ src/ Entity/ OrderItem.php, line 176
Class
- OrderItem
- Defines the order item entity class.
Namespace
Drupal\commerce_order\EntityCode
public function setAdjustments(array $adjustments) {
$this
->set('adjustments', $adjustments);
return $this;
}