You are here

function draggable_dashboard_theme_suggestions_block_alter in Draggable dashboard 8.2

Implements hook_theme_suggestions_HOOK_alter().

File

./draggable_dashboard.module, line 57
Contains draggable_dashboard.module.

Code

function draggable_dashboard_theme_suggestions_block_alter(array &$suggestions, array $variables) {
  if (isset($variables["elements"]["#draggable_dashboard"]) && $variables["elements"]["#draggable_dashboard"]) {
    $current = $suggestions;
    $suggestions[] = 'block__dashboard_item';
    foreach ($current as $theme_hook) {
      $suggestions[] = preg_replace('/^block/', 'block__dashboard_item', $theme_hook);
    }
  }
}