public function InvoiceItem::removeAdjustment in Commerce Invoice 8.2
Removes an adjustment.
Parameters
\Drupal\commerce_order\Adjustment $adjustment: The adjustment to remove.
Return value
$this
Overrides EntityAdjustableInterface::removeAdjustment
File
- src/
Entity/ InvoiceItem.php, line 193
Class
- InvoiceItem
- Defines the invoice item entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function removeAdjustment(Adjustment $adjustment) {
$this
->get('adjustments')
->removeAdjustment($adjustment);
return $this;
}