source/Application/Model/SeoEncoderArticle.php
protected function _getVendor($oArticle, $iLang)
    {
        $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();

        $oVendor = null;
        if ($sActVendorId = $oArticle->oxarticles__oxvendorid->value) {
            if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController && ($oActVendor = $oView->getActVendor())) {
                $oVendor = $oActVendor;
            } else {
                $oVendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
            }
            if ($oVendor->getId() !== $sActVendorId) {
                $oVendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
                if (!$oVendor->loadInLang($iLang, $sActVendorId)) {
                    $oVendor = null;
                }
            }
        }

        return $oVendor;
    }
protected function _getVendor($oArticle, $iLang)
    {
        $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();

        $oVendor = null;
        if ($sActVendorId = $oArticle->oxarticles__oxvendorid->value) {
            if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController && ($oActVendor = $oView->getActVendor())) {
                $oVendor = $oActVendor;
            } else {
                $oVendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
            }
            if ($oVendor->getId() !== $sActVendorId) {
                $oVendor = oxNew(\OxidEsales\Eshop\Application\Model\Vendor::class);
                if (!$oVendor->loadInLang($iLang, $sActVendorId)) {
                    $oVendor = null;
                }
            }
        }

        return $oVendor;
    }
protected function _getVendor ( $ oArticle , $ iLang ) { $ oView = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveView ( ) ; $ oVendor = null ; if ( $ sActVendorId = $ oArticle -> oxarticles__oxvendorid -> value ) { if ( $ oView instanceof \ OxidEsales \ Eshop \ Application \ Controller \ FrontendController && ( $ oActVendor = $ oView -> getActVendor ( ) ) ) { $ oVendor = $ oActVendor ; } else { $ oVendor = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Vendor :: class ) ; } if ( $ oVendor -> getId ( ) !== $ sActVendorId ) { $ oVendor = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Vendor :: class ) ; if ( ! $ oVendor -> loadInLang ( $ iLang , $ sActVendorId ) ) { $ oVendor = null ; } } } return $ oVendor ; }
Returns active vendor if available

@param \OxidEsales\Eshop\Application\Model\Article $oArticle product
@param int                                         $iLang    language id

@return \OxidEsales\Eshop\Application\Model\Vendor | null
Returns active vendor if available