I’ve tried $item->displayResourceClassLabel() and some other variants based on looking in the documentation, but I can’t seem to get it right. Any help would be appreciated.
It would be $item->resourceTemplate()->label()
.
Though you’d want a little logic there to handle if the item doesn’t have a template assigned (so $item->resourceTemplate()
is null).
I was looking in the wrong direction. Apologies for that.
That worked! Thanks!