source/Core/Config.php
public function getActiveShop()
    {
        if ($this->_oActShop && $this->_iShopId == $this->_oActShop->getId() &&
            $this->_oActShop->getLanguage() == Registry::getLang()->getBaseLanguage()
        ) {
            return $this->_oActShop;
        }

        $this->_oActShop = oxNew(\OxidEsales\Eshop\Application\Model\Shop::class);
        $this->_oActShop->load($this->getShopId());

        return $this->_oActShop;
    }
public function getActiveShop()
    {
        if ($this->_oActShop && $this->_iShopId == $this->_oActShop->getId() &&
            $this->_oActShop->getLanguage() == Registry::getLang()->getBaseLanguage()
        ) {
            return $this->_oActShop;
        }

        $this->_oActShop = oxNew(\OxidEsales\Eshop\Application\Model\Shop::class);
        $this->_oActShop->load($this->getShopId());

        return $this->_oActShop;
    }
public function getActiveShop ( ) { if ( $ this -> _oActShop && $ this -> _iShopId == $ this -> _oActShop -> getId ( ) && $ this -> _oActShop -> getLanguage ( ) == Registry :: getLang ( ) -> getBaseLanguage ( ) ) { return $ this -> _oActShop ; } $ this -> _oActShop = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Shop :: class ) ; $ this -> _oActShop -> load ( $ this -> getShopId ( ) ) ; return $ this -> _oActShop ; }
Loads and returns active shop object

@return Shop
Loads and returns active shop object