diff --git a/includes/views.inc b/includes/views.inc index 1892a69b204cfceb018cf0026c834d56979e6cd1..a5c10804bdcf5c07c500e1622578221bac8315c5 100644 --- a/includes/views.inc +++ b/includes/views.inc @@ -33,32 +33,3 @@ function views_theme_suggestions_views_view_unformatted(array $variables) { return $suggestions; } - -/** - * Implements preprocess_views_view(). - */ -function gesso_preprocess_views_view(&$variables) { - - $variables['path'] = $variables['view']->getRequest()->getPathInfo(); -} - -/** - * Implements hook_theme_suggestions_container_alter(). - */ -function gesso_theme_suggestions_container_alter(array &$suggestions, array $variables) { - - // A list of view names in which to exclude the container markup. - // Included views will use container--no-wrapper.html.twig - // instead of container.html.twig. - $exclude_views = [ - // 'example_view_machine_name', - ]; - - if (isset($variables['element']['#name'])) { - - if (in_array($variables['element']['#name'], $exclude_views)) { - - $suggestions[] = 'container__no_wrapper'; - } - } -}