source/Core/UtilsView.php
protected function _getTemplateBlock($moduleId, $fileName)
    {
        $pathFormatter = oxNew(ModuleTemplateBlockPathFormatter::class);
        $pathFormatter->setModulesPath(\OxidEsales\Eshop\Core\Registry::getConfig()->getModulesDir());
        $pathFormatter->setModuleId($moduleId);
        $pathFormatter->setFileName($fileName);

        $blockContentReader = oxNew(ModuleTemplateBlockContentReader::class);

        return $blockContentReader->getContent($pathFormatter);
    }
protected function _getTemplateBlock($moduleId, $fileName)
    {
        $pathFormatter = oxNew(ModuleTemplateBlockPathFormatter::class);
        $pathFormatter->setModulesPath(\OxidEsales\Eshop\Core\Registry::getConfig()->getModulesDir());
        $pathFormatter->setModuleId($moduleId);
        $pathFormatter->setFileName($fileName);

        $blockContentReader = oxNew(ModuleTemplateBlockContentReader::class);

        return $blockContentReader->getContent($pathFormatter);
    }
protected function _getTemplateBlock ( $ moduleId , $ fileName ) { $ pathFormatter = oxNew ( ModuleTemplateBlockPathFormatter :: class ) ; $ pathFormatter -> setModulesPath ( \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getModulesDir ( ) ) ; $ pathFormatter -> setModuleId ( $ moduleId ) ; $ pathFormatter -> setFileName ( $ fileName ) ; $ blockContentReader = oxNew ( ModuleTemplateBlockContentReader :: class ) ; return $ blockContentReader -> getContent ( $ pathFormatter ) ; }
Retrieve module block contents from active module block file.

@param string $moduleId active module id.
@param string $fileName module block file name.

@deprecated since v6.0.0 (2016-04-13); Use ModuleTemplateBlockContentReader::getContent().

@see getTemplateBlocks
@throws oxException if block is not found

@return string
Retrieve module block contents from active module block file .