src/i18n/Data/Sources.php
public function getSortedModules()
    {
        $i18nOrder = Sources::config()->uninherited('module_priority');
        $sortedModules = [];
        if ($i18nOrder) {
            Deprecation::notice('5.0', sprintf(
                '%s.module_priority is deprecated. Use %s.module_priority instead.',
                __CLASS__,
                ModuleManifest::class
            ));
        }

        foreach (ModuleLoader::inst()->getManifest()->getModules() as $module) {
            $sortedModules[$module->getName()] = $module->getPath();
        };

        return $sortedModules;
    }
public function getSortedModules()
    {
        $i18nOrder = Sources::config()->uninherited('module_priority');
        $sortedModules = [];
        if ($i18nOrder) {
            Deprecation::notice('5.0', sprintf(
                '%s.module_priority is deprecated. Use %s.module_priority instead.',
                __CLASS__,
                ModuleManifest::class
            ));
        }

        foreach (ModuleLoader::inst()->getManifest()->getModules() as $module) {
            $sortedModules[$module->getName()] = $module->getPath();
        };

        return $sortedModules;
    }
public function getSortedModules ( ) { $ i18nOrder = Sources :: config ( ) -> uninherited ( 'module_priority' ) ; $ sortedModules = [ ] ; if ( $ i18nOrder ) { Deprecation :: notice ( '5.0' , sprintf ( '%s.module_priority is deprecated. Use %s.module_priority instead.' , __CLASS__ , ModuleManifest :: class ) ) ; } foreach ( ModuleLoader :: inst ( ) -> getManifest ( ) -> getModules ( ) as $ module ) { $ sortedModules [ $ module -> getName ( ) ] = $ module -> getPath ( ) ; } ; return $ sortedModules ; }
Get sorted modules

@return array Array of module names -> path
Get sorted modules