It's been commonly accepted you should never use \Magento\Framework\App\ObjectManager::getInstance()
I can link sources explaining why if needed. Given this how would I go about getting the names of my categories if I should never use \Magento\Framework\App\ObjectManager::getInstance()
? Thanks.
EDIT: I don't just want category names I'd like IDs and various other bits of information for each but names is a good start