source/Core/UtilsView.php
private function removeParentBlocks($templateBlocks, $templateBlocksToExchange)
    {
        $activeBlockTemplates = $templateBlocks;
        $templateBlocks = [];
        $customThemeId = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sCustomTheme');
        foreach ($activeBlockTemplates as $activeBlockTemplate) {
            if (!in_array($this->prepareBlockKey($activeBlockTemplate), $templateBlocksToExchange['custom_theme'])
                || $activeBlockTemplate['OXTHEME'] === $customThemeId
            ) {
                $templateBlocks[] = $activeBlockTemplate;
            }
        }

        return $templateBlocks;
    }
private function removeParentBlocks($templateBlocks, $templateBlocksToExchange)
    {
        $activeBlockTemplates = $templateBlocks;
        $templateBlocks = [];
        $customThemeId = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('sCustomTheme');
        foreach ($activeBlockTemplates as $activeBlockTemplate) {
            if (!in_array($this->prepareBlockKey($activeBlockTemplate), $templateBlocksToExchange['custom_theme'])
                || $activeBlockTemplate['OXTHEME'] === $customThemeId
            ) {
                $templateBlocks[] = $activeBlockTemplate;
            }
        }

        return $templateBlocks;
    }
private function removeParentBlocks ( $ templateBlocks , $ templateBlocksToExchange ) { $ activeBlockTemplates = $ templateBlocks ; $ templateBlocks = [ ] ; $ customThemeId = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'sCustomTheme' ) ; foreach ( $ activeBlockTemplates as $ activeBlockTemplate ) { if ( ! in_array ( $ this -> prepareBlockKey ( $ activeBlockTemplate ) , $ templateBlocksToExchange [ 'custom_theme' ] ) || $ activeBlockTemplate [ 'OXTHEME' ] === $ customThemeId ) { $ templateBlocks [ ] = $ activeBlockTemplate ; } } return $ templateBlocks ; }
Remove parent theme blocks whose have duplicate for custom theme.

@param array $templateBlocks
@param array $templateBlocksToExchange

@return array
Remove parent theme blocks whose have duplicate for custom theme .