public function EntityAdjustableInterface::addAdjustment in Commerce Core 8.2
Adds an adjustment.
Parameters
\Drupal\commerce_order\Adjustment $adjustment: The adjustment.
Return value
$this
2 methods override EntityAdjustableInterface::addAdjustment()
- Order::addAdjustment in modules/
order/ src/ Entity/ Order.php - Adds an adjustment.
- OrderItem::addAdjustment in modules/
order/ src/ Entity/ OrderItem.php - Adds an adjustment.
File
- modules/
order/ src/ EntityAdjustableInterface.php, line 58
Class
- EntityAdjustableInterface
- Defines an interface for objects that contain adjustments.
Namespace
Drupal\commerce_orderCode
public function addAdjustment(Adjustment $adjustment);