LinkItem: how to create a disabled / null link
A different option:


Add a class to your disabled links.
Create a JS behavior that targets a.your-class and uses preventDefault() on the click event.
Add to libraries file for your module and add library as needed.


...
  $('a.your-class').click( function (e) {
    e.preventDefault();
  });
...