- 🇧🇪Belgium lobsterr
1) Since, we have already made manipulators alterable ✨ Make menu tree manipulators alterable Needs review , it is already possible to add it on your modules
2) I wanted to add a solution from #2 to the module by default, but since there is work in progress and they are changing the names of methods. I am not going to include
3) I like the approach to pass tree to a hook too, because ✨ Allow MenuLinkTree manipulators to be altered Needs work they also pass $tree to the event. So, let's add it too, but I propose to pass in the end to keep backward compatibility.function my_module_superfish_manipulators_alter(array &$manipulators, $menu_name= NULL, &$tree = []) { if ($menu_name == 'main') { $manipulators[] = ['callable' => 'menu.language_tree_manipulator:filterLanguage']; } }
- @lobsterr opened merge request.