bootstrap_storybook-8.x-2.0/includes/view.inc
includes/view.inc
<?php
/**
* @file
* Theme and preprocess functions for views.
*/
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function bootstrap_storybook_theme_suggestions_views_view_alter(array &$suggestions, array $variables) {
// Add a suggestion based on the view name and the current display.
$view = $variables['view'];
$name = $view->id();
$display = $view->current_display;
$suggestions[] = 'views_view__' . $name;
$suggestions[] = 'views_view__' . $name . '__' . $display;
}
/**
* Implements hook_theme_suggestions_HOOK_alter().
*/
function bootstrap_storybook_theme_suggestions_views_view_unformatted_alter(array &$suggestions, array $variables) {
// Add a suggestion based on the view name and the current display.
$view = $variables['view'];
$name = $view->id();
$display = $view->current_display;
$suggestions[] = 'views_view_unformatted__' . $name . '__' . $display;
}
