Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
uw_fdsu_theme_resp
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_fdsu_theme_resp
Commits
51474c12
Commit
51474c12
authored
2 years ago
by
Lily Yan
Committed by
Igor Biki
2 years ago
Browse files
Options
Downloads
Patches
Plain Diff
ISTWCMS-5878 Remove gesso related in views.inc file
parent
68c1fe4f
No related branches found
No related tags found
1 merge request
!93
ISTWCMS-5878 ISTWCMS-5878 Remove Gesso after 3.2.0 has shipped
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
includes/views.inc
+0
-29
0 additions, 29 deletions
includes/views.inc
with
0 additions
and
29 deletions
includes/views.inc
+
0
−
29
View file @
51474c12
...
...
@@ -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'
;
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment