Skip to content
Snippets Groups Projects
Commit e619e4d8 authored by Kevin Paxman's avatar Kevin Paxman
Browse files

ISTWCMS-4874: refactor exemptions, fix comment

parent 108909eb
No related branches found
No related tags found
2 merge requests!32Tag 1.0.1,!27ISTWCMS-4847: adding preprocess to main content area to add classes for 404...
......@@ -99,7 +99,7 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
}
// ISTWCMS-4847.
// If we are on the main content section, the check if 404 and add
// If we are on the main content section, the check if not a node and add
// appropriate classes to display proper width.
if ($region == 'content') {
......@@ -109,11 +109,12 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// If we are on not on a node, add appropriate classes to show
// proper width.
$route_name = $route_match->getRouteName();
if (!in_array($route_name, [
$exemptions = [
'entity.node.canonical',
'entity.node.latest_version',
'layout_builder.overrides.node.view',
])) {
];
if (!in_array($route_name, $exemptions)) {
$variables['classes'][] = 'layout';
$variables['classes'][] = 'uw-contained-width';
}
......
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