From 51474c12008a7a8f96cfa9f4fbd66b51631c9279 Mon Sep 17 00:00:00 2001 From: Lily Yan <l26yan@uwaterloo.ca> Date: Tue, 6 Dec 2022 11:24:12 -0500 Subject: [PATCH] ISTWCMS-5878 Remove gesso related in views.inc file --- includes/views.inc | 29 ----------------------------- 1 file changed, 29 deletions(-) diff --git a/includes/views.inc b/includes/views.inc index 1892a69b..a5c10804 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'; - } - } -} -- GitLab