src/Core/Module/ModuleExtensionCleanerDebug.php
protected function filterExtensionsByModuleId($modules, $moduleId)
    {
        $modulePaths = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModulePaths');

        $path = '';
        if (isset($modulePaths[$moduleId])) {
            $path = $modulePaths[$moduleId] . '/';
        }

        // TODO: This condition should be removed. Need to check integration tests.
        if (!$path) {
            $path = $moduleId . "/";
        }

        $filteredModules = [];
        foreach ($modules as $class => $extend) {
            foreach ($extend as $extendPath) {
                if (strpos($extendPath, $path) === 0) {
                    $filteredModules[$class][] = $extendPath;
                }
            }
        }

        return $filteredModules;
    }
protected function filterExtensionsByModuleId($modules, $moduleId)
    {
        $modulePaths = \OxidEsales\Eshop\Core\Registry::getConfig()->getConfigParam('aModulePaths');

        $path = '';
        if (isset($modulePaths[$moduleId])) {
            $path = $modulePaths[$moduleId] . '/';
        }

        // TODO: This condition should be removed. Need to check integration tests.
        if (!$path) {
            $path = $moduleId . "/";
        }

        $filteredModules = [];
        foreach ($modules as $class => $extend) {
            foreach ($extend as $extendPath) {
                if (strpos($extendPath, $path) === 0) {
                    $filteredModules[$class][] = $extendPath;
                }
            }
        }

        return $filteredModules;
    }
protected function filterExtensionsByModuleId ( $ modules , $ moduleId ) { $ modulePaths = \ OxidEsales \ Eshop \ Core \ Registry :: getConfig ( ) -> getConfigParam ( 'aModulePaths' ) ; $ path = '' ; if ( isset ( $ modulePaths [ $ moduleId ] ) ) { $ path = $ modulePaths [ $ moduleId ] . '/' ; } // TODO: This condition should be removed. Need to check integration tests. if ( ! $ path ) { $ path = $ moduleId . "/" ; } $ filteredModules = [ ] ; foreach ( $ modules as $ class => $ extend ) { foreach ( $ extend as $ extendPath ) { if ( strpos ( $ extendPath , $ path ) === 0 ) { $ filteredModules [ $ class ] [ ] = $ extendPath ; } } } return $ filteredModules ; }
Returns extensions list by module id.

@param array  $modules  Module array (nested format)
@param string $moduleId Module id/folder name

@return array
Returns extensions list by module id .