public static function getInstallPath($type, $name)
    {
        $locator = Grav::instance()['locator'];

        if ($type === 'theme') {
            $install_path = $locator->findResource('themes://', false) . DS . $name;
        } else {
            $install_path = $locator->findResource('plugins://', false) . DS . $name;
        }
        return $install_path;
    }
public static function getInstallPath($type, $name)
    {
        $locator = Grav::instance()['locator'];

        if ($type === 'theme') {
            $install_path = $locator->findResource('themes://', false) . DS . $name;
        } else {
            $install_path = $locator->findResource('plugins://', false) . DS . $name;
        }
        return $install_path;
    }
public static function getInstallPath ( $ type , $ name ) { $ locator = Grav :: instance ( ) [ 'locator' ] ; if ( $ type === 'theme' ) { $ install_path = $ locator -> findResource ( 'themes://' , false ) . DS . $ name ; } else { $ install_path = $ locator -> findResource ( 'plugins://' , false ) . DS . $ name ; } return $ install_path ; }
Get the install path for a name and a particular type of package

@param string $type
@param string $name
@return string
Get the install path for a name and a particular type of package