You are here

function amazon_theme_suggestions_amazon_image in Amazon Product Advertisement API 8.2

Implements hook_theme_suggestions_HOOK().

File

./amazon.module, line 49
Provides the easy integration of the Amazon Product Advertising API.

Code

function amazon_theme_suggestions_amazon_image(array $variables) {
  $suggestions = [];

  // Add theme suggestions based on image size.
  if (!empty($variables['size'])) {
    $suggestions[] = 'amazon_image__' . $variables['size'];
  }
  return $suggestions;
}