source/Application/Controller/RecommListController.php
public function getTreePath()
    {
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();

        $aPath[0] = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        $aPath[0]->setLink(false);
        $aPath[0]->oxcategories__oxtitle = new \OxidEsales\Eshop\Core\Field($oLang->translateString('RECOMMLIST'));

        if ($sSearchParam = $this->getRecommSearch()) {
            $shopHomeURL = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopHomeUrl();
            $sUrl = $shopHomeURL . "cl=recommlist&amp;searchrecomm=" . rawurlencode($sSearchParam);
            $sTitle = $oLang->translateString('RECOMMLIST_SEARCH') . ' "' . $sSearchParam . '"';

            $aPath[1] = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
            $aPath[1]->setLink($sUrl);
            $aPath[1]->oxcategories__oxtitle = new \OxidEsales\Eshop\Core\Field($sTitle);
        }

        return $aPath;
    }
public function getTreePath()
    {
        $oLang = \OxidEsales\Eshop\Core\Registry::getLang();

        $aPath[0] = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
        $aPath[0]->setLink(false);
        $aPath[0]->oxcategories__oxtitle = new \OxidEsales\Eshop\Core\Field($oLang->translateString('RECOMMLIST'));

        if ($sSearchParam = $this->getRecommSearch()) {
            $shopHomeURL = \OxidEsales\Eshop\Core\Registry::getConfig()->getShopHomeUrl();
            $sUrl = $shopHomeURL . "cl=recommlist&amp;searchrecomm=" . rawurlencode($sSearchParam);
            $sTitle = $oLang->translateString('RECOMMLIST_SEARCH') . ' "' . $sSearchParam . '"';

            $aPath[1] = oxNew(\OxidEsales\Eshop\Application\Model\Category::class);
            $aPath[1]->setLink($sUrl);
            $aPath[1]->oxcategories__oxtitle = new \OxidEsales\Eshop\Core\Field($sTitle);
        }

        return $aPath;
    }
public function getTreePath ( ) { $ oLang = \ OxidEsales \ Eshop \ Core \ Registry :: getLang ( ) ; $ aPath [ 0 ] = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Category :: class ) ; $ aPath [ 0 ] -> setLink ( false ) ; $ aPath [ 0 ] -> oxcategories__oxtitle = new \ OxidEsales \ Eshop \ Core \ Field ( $ oLang -> translateString ( 'RECOMMLIST' ) ) ; if ( $ sSearchParam = $ this -> getRecommSearch ( ) ) { $ shopHomeURL = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getShopHomeUrl ( ) ; $ sUrl = $ shopHomeURL . "cl=recommlist&amp;searchrecomm=" . rawurlencode ( $ sSearchParam ) ; $ sTitle = $ oLang -> translateString ( 'RECOMMLIST_SEARCH' ) . ' "' . $ sSearchParam . '"' ; $ aPath [ 1 ] = oxNew ( \ OxidEsales \ Eshop \ Application \ Model \ Category :: class ) ; $ aPath [ 1 ] -> setLink ( $ sUrl ) ; $ aPath [ 1 ] -> oxcategories__oxtitle = new \ OxidEsales \ Eshop \ Core \ Field ( $ sTitle ) ; } return $ aPath ; }
Template variable getter. Returns category path array

@return array
Template variable getter . Returns category path array