source/Application/Model/SeoEncoderArticle.php
protected function _getManufacturer($oArticle, $iLang)
    {
        $oManufacturer = null;
        if ($sActManufacturerId = $oArticle->oxarticles__oxmanufacturerid->value) {
            $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();

            if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController && ($oActManufacturer = $oView->getActManufacturer())) {
                $oManufacturer = $oActManufacturer;
            } else {
                $oManufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
            }

            if ($oManufacturer->getId() !== $sActManufacturerId || $oManufacturer->getLanguage() != $iLang) {
                $oManufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
                if (!$oManufacturer->loadInLang($iLang, $sActManufacturerId)) {
                    $oManufacturer = null;
                }
            }
        }

        return $oManufacturer;
    }
protected function _getManufacturer($oArticle, $iLang)
    {
        $oManufacturer = null;
        if ($sActManufacturerId = $oArticle->oxarticles__oxmanufacturerid->value) {
            $oView = \OxidEsales\Eshop\Core\Registry::getConfig()->getActiveView();

            if ($oView instanceof \OxidEsales\Eshop\Application\Controller\FrontendController && ($oActManufacturer = $oView->getActManufacturer())) {
                $oManufacturer = $oActManufacturer;
            } else {
                $oManufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
            }

            if ($oManufacturer->getId() !== $sActManufacturerId || $oManufacturer->getLanguage() != $iLang) {
                $oManufacturer = oxNew(\OxidEsales\Eshop\Application\Model\Manufacturer::class);
                if (!$oManufacturer->loadInLang($iLang, $sActManufacturerId)) {
                    $oManufacturer = null;
                }
            }
        }

        return $oManufacturer;
    }
protected function _getManufacturer ( $ oArticle , $ iLang ) { $ oManufacturer = null ; if ( $ sActManufacturerId = $ oArticle -> oxarticles__oxmanufacturerid -> value ) { $ oView = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getActiveView ( ) ; if ( $ oView instanceof \ OxidEsales \ Eshop \ Application \ Controller \ FrontendController && ( $ oActManufacturer = $ oView -> getActManufacturer ( ) ) ) { $ oManufacturer = $ oActManufacturer ; } else { $ oManufacturer = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Manufacturer :: class ) ; } if ( $ oManufacturer -> getId ( ) !== $ sActManufacturerId || $ oManufacturer -> getLanguage ( ) != $ iLang ) { $ oManufacturer = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Manufacturer :: class ) ; if ( ! $ oManufacturer -> loadInLang ( $ iLang , $ sActManufacturerId ) ) { $ oManufacturer = null ; } } } return $ oManufacturer ; }
Returns active manufacturer if available

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

@return \OxidEsales\Eshop\Application\Model\Manufacturer | null
Returns active manufacturer if available