You are here

function commerce_invoice_title in Commerce Invoice 7.2

Menu title callback for an invoice.

Parameters

Invoice $invoice:

Return value

string

1 call to commerce_invoice_title()
template_preprocess_commerce_invoice_pdf_page in modules/pdf/commerce_invoice_pdf.module
Preprocess function for the invoice PDF page template.
1 string reference to 'commerce_invoice_title'
commerce_invoice_menu in ./commerce_invoice.module
Implements hook_menu().

File

./commerce_invoice.module, line 426
The Commerce Invoice module.

Code

function commerce_invoice_title(Invoice $invoice) {
  return t('Invoice @number', [
    '@number' => $invoice
      ->getInvoiceNumber()
      ->__toString(),
  ]);
}