public function InvoiceItem::getInvoice in Commerce Invoice 8.2
Gets the parent invoice.
Return value
\Drupal\commerce_invoice\Entity\InvoiceInterface|null The invoice, or NULL.
Overrides InvoiceItemInterface::getInvoice
File
- src/
Entity/ InvoiceItem.php, line 56
Class
- InvoiceItem
- Defines the invoice item entity class.
Namespace
Drupal\commerce_invoice\EntityCode
public function getInvoice() {
return $this
->getTranslatedReferencedEntity('invoice_id');
}