public function InvoiceController::title in Commerce Invoice 8.2
The _title_callback for the page that renders a single invoice.
Parameters
\Drupal\commerce_invoice\Entity\InvoiceInterface $commerce_invoice: The invoice being viewed.
Return value
string The page title.
File
- src/
Controller/ InvoiceController.php, line 83
Class
- InvoiceController
- Provides the invoice download route.
Namespace
Drupal\commerce_invoice\ControllerCode
public function title(InvoiceInterface $commerce_invoice) {
return $this
->t('@invoice_type #@invoice_number', [
'@invoice_type' => $commerce_invoice
->get('type')->entity
->label(),
'@invoice_number' => $commerce_invoice
->label(),
]);
}