function amazon_theme_suggestions_amazon_inline in Amazon Product Advertisement API 8.2
Implements hook_theme_suggestions_HOOK().
File
- ./
amazon.module, line 29 - Provides the easy integration of the Amazon Product Advertising API.
Code
function amazon_theme_suggestions_amazon_inline(array $variables) {
$suggestions = [];
if (empty($variables['bundle'] || $variables['field'])) {
return $suggestions;
}
// Add theme suggestions based on the bundle and field.
$bundle = $variables['bundle'];
$field = $variables['field'];
$base = $variables['theme_hook_original'];
$suggestions[] = $base . '__' . $bundle;
$suggestions[] = $base . '__' . $field;
$suggestions[] = $base . '__' . $bundle . '__' . $field;
return $suggestions;
}