public function InvoiceItemInterface::populateFromOrderItem in Commerce Invoice 8.2
Populates the invoice item with field values from the order item.
Parameters
\Drupal\commerce_Order\Entity\OrderItemInterface $order_item: The order item.
Return value
$this
1 method overrides InvoiceItemInterface::populateFromOrderItem()
- InvoiceItem::populateFromOrderItem in src/
Entity/ InvoiceItem.php - Populates the invoice item with field values from the order item.
File
- src/
Entity/ InvoiceItemInterface.php, line 241
Class
- InvoiceItemInterface
- Defines the interface for invoice items.
Namespace
Drupal\commerce_invoice\EntityCode
public function populateFromOrderItem(OrderItemInterface $order_item);