You are here

public function OrderItemInterface::setUnitPrice in Commerce Core 8.2

Sets the order item unit price.

Parameters

\Drupal\commerce_price\Price $unit_price: The order item unit price.

bool $override: Whether the unit price should be overridden.

Return value

$this

1 method overrides OrderItemInterface::setUnitPrice()
OrderItem::setUnitPrice in modules/order/src/Entity/OrderItem.php
Sets the order item unit price.

File

modules/order/src/Entity/OrderItemInterface.php, line 109

Class

OrderItemInterface
Defines the interface for order items.

Namespace

Drupal\commerce_order\Entity

Code

public function setUnitPrice(Price $unit_price, $override = FALSE);