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

ISTWCMS-4874: add layout builder and latest version pages to fixed-width exemptions

parent 54bfce1e
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...
......@@ -108,7 +108,12 @@ function uw_fdsu_theme_resp_preprocess_region(&$variables) {
// If we are on not on a node, add appropriate classes to show
// proper width.
if ($route_match->getRouteName() !== 'entity.node.canonical') {
$route_name = $route_match->getRouteName();
if (!in_array($route_name, [
'entity.node.canonical',
'entity.node.latest_version',
'layout_builder.overrides.node.view',
])) {
$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