$objectManager = \Magento\Framework\App\ObjectManager::getInstance();

$storemanager = $objectManager->create(‘Magento\Store\Model\StoreManagerInterface’);

echo $storemanager->getStore()->getName();

Your Answer
Sign In
Enter email and password to comment or answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.