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

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

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

Please login or Register to submit your answer
Not the answer you are looking for? Browse other questions tagged or ask your own question.