Overrides StreamWrapperInterface::getExternalUrl
public function getExternalUrl() { $path = str_replace('\\', '/', $this->getTarget()); return Url::fromRoute('system.private_file_download', [ 'filepath' => $path, ], [ 'absolute' => TRUE, 'path_processing' => FALSE, ])->toString(); }