public function Invoice::getOrders in Commerce Invoice 8.2
Gets the invoice orders.
Return value
\Drupal\commerce_order\Entity\OrderInterface[] The invoice orders.
Overrides InvoiceInterface::getOrders
File
- src/
Entity/ Invoice.php, line 215
Class
- Invoice
- Defines the invoice entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function getOrders() {
return $this
->get('orders')
->referencedEntities();
}