You are here

function addtoany_theme_suggestions_addtoany_standard in AddToAny Share Buttons 8

Implements hook_theme_suggestions_HOOK().

File

./addtoany.module, line 40
Handle AddToAny integration.

Code

function addtoany_theme_suggestions_addtoany_standard(array $variables) {
  $suggestion = 'addtoany_standard__';
  $suggestions = [];
  if (!empty($variables['entity_type'])) {
    $suggestion .= $variables['entity_type'];
    $suggestions[] = $suggestion;
  }
  if (!empty($variables['entity_type']) && !empty($variables['bundle'])) {
    $suggestion .= '__' . $variables['bundle'];
    $suggestions[] = $suggestion;
  }
  return $suggestions;
}