source/Application/Component/Widget/ArticleDetails.php
protected function _getParentProduct($sParentId)
    {
        if ($sParentId && $this->_oParentProd === null) {
            $this->_oParentProd = false;
            $oProduct = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if (($oProduct->load($sParentId))) {
                $this->_processProduct($oProduct);
                $this->_oParentProd = $oProduct;
            }
        }

        return $this->_oParentProd;
    }
protected function _getParentProduct($sParentId)
    {
        if ($sParentId && $this->_oParentProd === null) {
            $this->_oParentProd = false;
            $oProduct = oxNew(\OxidEsales\Eshop\Application\Model\Article::class);
            if (($oProduct->load($sParentId))) {
                $this->_processProduct($oProduct);
                $this->_oParentProd = $oProduct;
            }
        }

        return $this->_oParentProd;
    }
protected function _getParentProduct ( $ sParentId ) { if ( $ sParentId && $ this -> _oParentProd === null ) { $ this -> _oParentProd = false ; $ oProduct = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Article :: class ) ; if ( ( $ oProduct -> load ( $ sParentId ) ) ) { $ this -> _processProduct ( $ oProduct ) ; $ this -> _oParentProd = $ oProduct ; } } return $ this -> _oParentProd ; }
Returns current product parent article object if it is available.

@param string $sParentId parent product id

@return Article
Returns current product parent article object if it is available .