You are here

function hackedProjectWebFilesDownloader::download_link in Hacked! 8.2

1 call to hackedProjectWebFilesDownloader::download_link()
hackedProjectWebFilesDownloader::download in src/hackedProjectWebFilesDownloader.php
Download the remote files to the local filesystem.

File

src/hackedProjectWebFilesDownloader.php, line 13

Class

hackedProjectWebFilesDownloader
Downloads a project using a standard Drupal method.

Namespace

Drupal\hacked

Code

function download_link() {
  if (!empty($this->project->project_info['releases'][$this->project->existing_version])) {
    $this_release = $this->project->project_info['releases'][$this->project->existing_version];
    return $this_release['download_link'];
  }
}