src/View/GenericTemplateGlobalProvider.php
public static function ModulePath($name)
    {
        // BC for a couple fo the key modules in the old syntax. Reduces merge brittleness but can
        // be removed before 4.0 stable
        $legacyMapping = [
            'framework' => 'silverstripe/framework',
            'frameworkadmin' => 'silverstripe/admin',
        ];
        if (isset($legacyMapping[$name])) {
            $name = $legacyMapping[$name];
        }

        return ModuleLoader::getModule($name)->getRelativePath();
    }
public static function ModulePath($name)
    {
        // BC for a couple fo the key modules in the old syntax. Reduces merge brittleness but can
        // be removed before 4.0 stable
        $legacyMapping = [
            'framework' => 'silverstripe/framework',
            'frameworkadmin' => 'silverstripe/admin',
        ];
        if (isset($legacyMapping[$name])) {
            $name = $legacyMapping[$name];
        }

        return ModuleLoader::getModule($name)->getRelativePath();
    }
public static function ModulePath ( $ name ) { // BC for a couple fo the key modules in the old syntax. Reduces merge brittleness but can // be removed before 4.0 stable $ legacyMapping = [ 'framework' => 'silverstripe/framework' , 'frameworkadmin' => 'silverstripe/admin' , ] ; if ( isset ( $ legacyMapping [ $ name ] ) ) { $ name = $ legacyMapping [ $ name ] ; } return ModuleLoader :: getModule ( $ name ) -> getRelativePath ( ) ; }
Given some pre-defined modules, return the filesystem path of the module.
@param string $name Name of module to find path of
@return string
Given some pre - defined modules return the filesystem path of the module .