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