concrete/src/Entity/File/Version.php
public function getDownloadURL()
    {
        $app = Application::getFacadeApplication();
        $urlResolver = $app->make(ResolverManagerInterface::class);
        $c = Page::getCurrentPage();
        $cID = $c instanceof Page && !$c->isError() ? $c->getCollectionID() : 0;

        return $urlResolver->resolve(['/download_file', $this->getFileID(), $cID]);
    }
public function getDownloadURL()
    {
        $app = Application::getFacadeApplication();
        $urlResolver = $app->make(ResolverManagerInterface::class);
        $c = Page::getCurrentPage();
        $cID = $c instanceof Page && !$c->isError() ? $c->getCollectionID() : 0;

        return $urlResolver->resolve(['/download_file', $this->getFileID(), $cID]);
    }
public function getDownloadURL ( ) { $ app = Application :: getFacadeApplication ( ) ; $ urlResolver = $ app -> make ( ResolverManagerInterface :: class ) ; $ c = Page :: getCurrentPage ( ) ; $ cID = $ c instanceof Page && ! $ c -> isError ( ) ? $ c -> getCollectionID ( ) : 0 ; return $ urlResolver -> resolve ( [ '/download_file' , $ this -> getFileID ( ) , $ cID ] ) ; }
Get an URL that can be used to download the file.
This passes through the download_file single page.

@return \League\URL\URLInterface
Get an URL that can be used to download the file . This passes through the download_file single page .