Skip to content

Commit

Permalink
[CIVIC-1448] Fixed Menu link expand property.
Browse files Browse the repository at this point in the history
  • Loading branch information
govindmaloo committed Jul 16, 2023
1 parent 4866b15 commit 5ebbf2e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions docroot/themes/contrib/civictheme/includes/menu.inc
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ function _civictheme_preprocess_menu_items(&$items) {
'is_external' => $item['url']->isExternal(),
];

if (!$item["original_link"]->getPluginDefinition()["expanded"]) {
$item['below'] = [];
$item['is_expanded'] = FALSE;
}

if (count($item['below'])) {
_civictheme_preprocess_menu_items($item['below']);
}
Expand Down

0 comments on commit 5ebbf2e

Please sign in to comment.