ajax nav for productions is working
This commit is contained in:
@@ -85,7 +85,13 @@ function edlp_productions_node_view(array &$build, \Drupal\Core\Entity\EntityInt
|
||||
];
|
||||
$tree = $menu_tree_service->transform($tree, $manipulators);
|
||||
// And the last step is to actually build the tree.
|
||||
$build['production_parent'] = $menu_tree_service->build($tree);
|
||||
$build['production_parent'] = array(
|
||||
'#type'=>"container",
|
||||
'#attributes'=>array(
|
||||
'class'=>'productions-parent'
|
||||
),
|
||||
'menu'=>$menu_tree_service->build($tree)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -108,7 +114,13 @@ function edlp_productions_node_view(array &$build, \Drupal\Core\Entity\EntityInt
|
||||
];
|
||||
$tree = $menu_tree_service->transform($tree, $manipulators);
|
||||
// And the last step is to actually build the tree.
|
||||
$build['production_subtree'] = $menu_tree_service->build($tree);
|
||||
$build['production_subtree'] = array(
|
||||
'#type'=>"container",
|
||||
'#attributes'=>array(
|
||||
'class'=>'productions-subtree'
|
||||
),
|
||||
'menu'=>$menu_tree_service->build($tree)
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user