You are here

public function InvoiceMetadataController::invoiceNumberGetter in Commerce Invoice 7.2

Getter callback for invoice_number.

File

src/Entity/InvoiceMetadataController.php, line 105
Provides entity metadata integration.

Class

InvoiceMetadataController

Namespace

Drupal\commerce_invoice\Entity

Code

public function invoiceNumberGetter(Invoice $invoice) {
  return (string) $invoice
    ->getInvoiceNumber();
}