public function getCurrentStoreName()
    {
        if ($this->getStoreId() !== null) {
            $store = $this->storeFactory->create();
            $store->load($this->getStoreId());
            if ($store->getId()) {
                return $store->getName();
            }
        }
    }
public function getCurrentStoreName()
    {
        if ($this->getStoreId() !== null) {
            $store = $this->storeFactory->create();
            $store->load($this->getStoreId());
            if ($store->getId()) {
                return $store->getName();
            }
        }
    }
public function getCurrentStoreName ( ) { if ( $ this -> getStoreId ( ) !== null ) { $ store = $ this -> storeFactory -> create ( ) ; $ store -> load ( $ this -> getStoreId ( ) ) ; if ( $ store -> getId ( ) ) { return $ store -> getName ( ) ; } } }
Get current store view name

@return string
Get current store view name