Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
WCMS
uw_sites_all
Commits
8402304f
Commit
8402304f
authored
Jan 13, 2021
by
m26lebla
Browse files
removal of the preprocess html and the previous code comments for dashboards
parent
1b60dd42
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
24 deletions
+0
-24
uw_sites_all.module
uw_sites_all.module
+0
-24
No files found.
uw_sites_all.module
View file @
8402304f
...
...
@@ -99,30 +99,6 @@ function uw_sites_all_page_attachments(array &$page) {
return
;
}
// Commented out until we work on dashboards presentation layer.
// Get the arguments of the URL and separate into parts.
//$args = explode('/', \Drupal::service('path.current')->getPath());
// If we are on the dashboard, add the stylings so that blocks
// appear correctly.
//if (in_array('dashboard', $args)) {
// $page['#attached']['library'][] = 'uw_fdsu_theme_resp/global';
//}
}
/**
* Implements template_preprocess_html().
*/
function
uw_sites_all_preprocess_html
(
&
$variables
)
{
// Get the arguments of the URL and separate into parts.
$args
=
explode
(
'/'
,
\
Drupal
::
service
(
'path.current'
)
->
getPath
());
// If the last argument is layout, we are on a layout page,
// so set the variable to true.
if
(
!
in_array
(
'dashboard'
,
$args
))
{
$variables
[
'attributes'
][
'class'
][]
=
'uw-page'
;
}
}
/**
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment