You are here

function blocktabs_theme_suggestions_blocktabs in Block Tabs 8

Implements hook_theme_suggestions_HOOK().

File

./blocktabs.module, line 39
Provides block tabs.

Code

function blocktabs_theme_suggestions_blocktabs(array $variables) {
  $suggestions = [];
  $blocktabs = $variables['elements']['#blocktabs'];
  $style = $blocktabs
    ->getStyle();

  // drupal_set_message('$style:' .$style);
  if (!empty($style)) {
    $suggestions[] = 'blocktabs__' . $style;
  }
  $tabs_id = $blocktabs
    ->id();
  if (!empty($tabs_id)) {
    $suggestions[] = 'blocktabs__' . $tabs_id;
  }
  return $suggestions;
}