- π¦πΊAustralia mstrelan
This was a triage target today for Bug Smash Initiative. At first glance it seemed like this is valid and a good first step would be to write a failing test. Upon further inspection this is possibly working as intended. The documentation for
MenuTreeParametersreadsMenu tree parameters are used to determine the set of definitions to be loaded from \Drupal\Core\Menu\MenuTreeStorageInterface.
That leads me to believe that
MenuTreeParametersis exclusively used for loading the tree and has no bearing on which menu links are rendered. I believe this part is working correctly, as seen towards the end of\Drupal\KernelTests\Core\Menu\MenuTreeStorageTest::testLoadTree. I think this issue should be repurposed to allow\Drupal\Core\Menu\MenuLinkTree::buildand::buildItemsto include disabled items, and at that point it's starting to sound like a task or feature request.