public function EntityAdjustableInterface::getAdjustments in Commerce Core 8.2
Gets the adjustments.
Parameters
string[] $adjustment_types: The adjustment types to include. Examples: fee, promotion, tax. Defaults to all adjustment types.
Return value
\Drupal\commerce_order\Adjustment[] The adjustments.
2 methods override EntityAdjustableInterface::getAdjustments()
- Order::getAdjustments in modules/
order/ src/ Entity/ Order.php - Gets the adjustments.
- OrderItem::getAdjustments in modules/
order/ src/ Entity/ OrderItem.php - Gets the adjustments.
File
- modules/
order/ src/ EntityAdjustableInterface.php, line 38
Class
- EntityAdjustableInterface
- Defines an interface for objects that contain adjustments.
Namespace
Drupal\commerce_orderCode
public function getAdjustments(array $adjustment_types = []);