function commerce_invoice_theme_suggestions_commerce_invoice_confirmation in Commerce Invoice 8.2
Implements hook_theme_suggestions_commerce_invoice_confirmation().
File
- ./
commerce_invoice.module, line 252 - Defines the Invoice entity and associated features.
Code
function commerce_invoice_theme_suggestions_commerce_invoice_confirmation(array $variables) {
$suggestions = [];
if (isset($variables['invoice_entity'])) {
$invoice = $variables['invoice_entity'];
$suggestions[] = $variables['theme_hook_original'] . '__' . $invoice
->bundle();
}
return $suggestions;
}