function commerce_pado_theme_suggestions_commerce_pado_addon_product_label in Commerce Product Add-on 8
Implements hook_theme_suggestions_commerce_pado_addon_product_label().
File
- ./
commerce_pado.module, line 35 - Commerce Product Add On module file.
Code
function commerce_pado_theme_suggestions_commerce_pado_addon_product_label(array $variables) {
$original = $variables['theme_hook_original'];
$suggestions = [];
$suggestions[] = $original;
$suggestions[] = $original . '__' . $variables['product_entity']
->bundle();
return $suggestions;
}