You are here

public function Invoice::getItems in Commerce Invoice 8.2

Gets the invoice items.

Return value

\Drupal\commerce_invoice\Entity\InvoiceItemInterface[] The invoice items.

Overrides InvoiceInterface::getItems

4 calls to Invoice::getItems()
Invoice::collectAdjustments in src/Entity/Invoice.php
Collects all adjustments that belong to the invoice.
Invoice::getSubtotalPrice in src/Entity/Invoice.php
Gets the invoice subtotal price.
Invoice::postSave in src/Entity/Invoice.php
Acts on a saved entity before the insert or update hook is invoked.
Invoice::recalculateTotalPrice in src/Entity/Invoice.php
Recalculates the invoice total price.

File

src/Entity/Invoice.php, line 230

Class

Invoice
Defines the invoice entity class.

Namespace

Drupal\commerce_invoice\Entity

Code

public function getItems() {
  return $this
    ->getTranslatedReferencedEntities('invoice_items');
}