private function getDefaultStoreView()
    {
        $store = $this->storeManager->getDefaultStoreView();
        if (null === $store) {
            // Occurs when current user does not have access to default website (due to AdminGWS ACLS on Magento EE).
            $store = current($this->storeManager->getWebsites())->getDefaultStore();
        }

        return $store;
    }
private function getDefaultStoreView()
    {
        $store = $this->storeManager->getDefaultStoreView();
        if (null === $store) {
            // Occurs when current user does not have access to default website (due to AdminGWS ACLS on Magento EE).
            $store = current($this->storeManager->getWebsites())->getDefaultStore();
        }

        return $store;
    }
private function getDefaultStoreView ( ) { $ store = $ this -> storeManager -> getDefaultStoreView ( ) ; if ( null === $ store ) { // Occurs when current user does not have access to default website (due to AdminGWS ACLS on Magento EE). $ store = current ( $ this -> storeManager -> getWebsites ( ) ) -> getDefaultStore ( ) ; } return $ store ; }
Retrieve default Store View

@return \Magento\Store\Api\Data\StoreInterface
Retrieve default Store View