function hackedProjectWebDownloader::get_final_destination in Hacked! 8.2
Returns the final destination of the unpacked project.
1 method overrides hackedProjectWebDownloader::get_final_destination()
- hackedProjectWebDevDownloader::get_final_destination in src/
hackedProjectWebDevDownloader.php - Returns the final destination of the unpacked project.
File
- src/
hackedProjectWebDownloader.php, line 70
Class
- hackedProjectWebDownloader
- Base class for downloading remote versions of projects.
Namespace
Drupal\hackedCode
function get_final_destination() {
$dir = $this
->get_destination();
$name = $this->project->name;
$version = $this->project->existing_version;
$type = $this->project->project_type;
// More special handling for core:
if ($type != 'core') {
$module_dir = $dir . "/{$name}";
}
else {
$module_dir = $dir . '/' . $name . '-' . $version;
}
return $module_dir;
}