public function Shipment::setAdjustments in Commerce Shipping 8.2
Sets the adjustments.
Parameters
\Drupal\commerce_order\Adjustment[] $adjustments: The adjustments.
Return value
$this
Overrides EntityAdjustableInterface::setAdjustments
1 call to Shipment::setAdjustments()
- Shipment::clearAdjustments in src/
Entity/ Shipment.php - Removes all adjustments that belong to the shipment.
File
- src/
Entity/ Shipment.php, line 389
Class
- Shipment
- Defines the shipment entity class.
Namespace
Drupal\commerce_shipping\EntityCode
public function setAdjustments(array $adjustments) {
$this
->set('adjustments', $adjustments);
return $this;
}