After reading the following post Magento 2: How can I add External URL in top menu
I was hoping to do something similiar .
We have a category attribute and want to display categories depending on a users logged in state. I was hoping that each of the children elements would have a canShow() function or similiar but it doesn't seem the case.
I don't really want to wrap around or replace the _getHtml function, but I don't see clean way of doing it.
Thanks in advance