public function getInstallPath(PackageInterface $package)
    {
        if ($package->getType() === 'oxid-base') {
            return $this->_locations[$package->getType()];
        }
        $themeName = "ra";
        $extra = $package->getExtra();
        $installFolder = $this->_locations[$package->getType()] . '/' . str_replace(array($themeName . "/", '-theme'), '', $package->getPrettyName());
        if ($extra) {
            $themeName = $extra["themeName"];
            $installFolder = $this->_locations[$package->getType()] . '/' . $themeName;
        }

        return $installFolder;
    }
public function getInstallPath(PackageInterface $package)
    {
        if ($package->getType() === 'oxid-base') {
            return $this->_locations[$package->getType()];
        }
        $themeName = "ra";
        $extra = $package->getExtra();
        $installFolder = $this->_locations[$package->getType()] . '/' . str_replace(array($themeName . "/", '-theme'), '', $package->getPrettyName());
        if ($extra) {
            $themeName = $extra["themeName"];
            $installFolder = $this->_locations[$package->getType()] . '/' . $themeName;
        }

        return $installFolder;
    }
public function getInstallPath ( PackageInterface $ package ) { if ( $ package -> getType ( ) === 'oxid-base' ) { return $ this -> _locations [ $ package -> getType ( ) ] ; } $ themeName = "ra" ; $ extra = $ package -> getExtra ( ) ; $ installFolder = $ this -> _locations [ $ package -> getType ( ) ] . '/' . str_replace ( array ( $ themeName . "/" , '-theme' ) , '' , $ package -> getPrettyName ( ) ) ; if ( $ extra ) { $ themeName = $ extra [ "themeName" ] ; $ installFolder = $ this -> _locations [ $ package -> getType ( ) ] . '/' . $ themeName ; } return $ installFolder ; }
get install path by package

@param PackageInterface $package package

@return string
get install path by package