Skip to content
Snippets Groups Projects
Commit bc176f13 authored by slayne40's avatar slayne40 Committed by Nikolay Lobachev
Browse files

Issue #3387352 by slayne40, LOBsTerr: Add nolink class when it's necessary...

Issue #3387352 by slayne40, LOBsTerr: Add nolink class when it's necessary even if the item has no children
parent 64eded25
No related branches found
Tags 8.x-1.7
No related merge requests found
......@@ -268,6 +268,7 @@ function template_preprocess_superfish_menu_items(array &$variables) {
$item['options_menuparent']['attributes']['class'][] = 'menuparent';
if ($nolink) {
$item['options_menuparent']['attributes']['class'][] = 'nolink';
$item['options']['attributes']['class'][] = 'nolink';
}
$link_element = [
'#type' => 'link',
......
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