Skip to content
Snippets Groups Projects
Commit 51474c12 authored by Lily Yan's avatar Lily Yan Committed by Igor Biki
Browse files

ISTWCMS-5878 Remove gesso related in views.inc file

parent 68c1fe4f
No related branches found
No related tags found
1 merge request!93ISTWCMS-5878 ISTWCMS-5878 Remove Gesso after 3.2.0 has shipped
......@@ -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';
}
}
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment